You are here: Re: String Position « All PHP « IT news, forums, messages
Re: String Position

Posted by Rich on 05/08/06 21:46

On Mon, 08 May 2006 15:24:02 GMT, Brian wrote...
>
>Hi there
>
>This is probable really easy but I can't find the answer, I want to know
>what the first character is in a string
>
>e.g. string =ABC1234 and i want to return 'A'
>
>Brian
>
>
>
>
>

Based on the information for "substr()" at php.net...

<?php
$string = 'ABC1234';
echo $string{0};
?>


--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

 

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

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