You are here: RE: [PHP] Replacing 2 strings « PHP « IT news, forums, messages
RE: [PHP] Replacing 2 strings

Posted by Brian V Bonini on 10/31/68 11:17

On Mon, 2005-05-30 at 12:58, Murray @ PlanetThoughtful wrote:
> <?
> $string = "this";
> $string{0} = strtoupper($string{0});
> echo $string; // should return value of "This"
> ?>

I knew you could access but I didn't realize your could assign/replace
specific chars like that, i.e. $string{x} =

I can usually work through the logic but am not familiar enough with PHP
to know what's available to work with....

--

s/:-[(/]/:-)/g


Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация