You are here: Re: How to access first element of string? « PHP Language « IT news, forums, messages
Re: How to access first element of string?

Posted by <talthen.z-serwera.o2 on 08/25/05 23:50

"ZeldorBlat" <zeldorblat@gmail.com>
> It worked for me. Here is the exact code I ran to test it:
>
> $s = "12345";
> $s{0} = '?';
> echo $s;

Indeed. It works. I had just the following problem: my string was empty and
then I tried to change its first element to ?.
After this it was still = "Array". But when I checked isset and empty I got
that this string is not empty nor unset. Heh :)

Now, it's working, thanks.

Regards,
Talthen

 

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

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