RE: [PHP] Charecter by position

From: Date: Wed, 22 Nov 2000 19:08:22 +0000
Subject: RE: [PHP] Charecter by position
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26647@lists.php.net to get a copy of this message
You can also treat the string as an array: $string = "This is handy"; echo $string[2]; will print "i"; Robert Zwink <A HREF="http://zwink.levitate.org"> http://zwink.levitate.org </A> -----Original Message----- From: Mike [mailto:mpeloso@princeton.edu] Sent: Wednesday, November 22, 2000 7:55 AM To: php-general@lists.php.net Subject: [PHP] Charecter by position How do I return a charecter by its position in a string Example: I want the third charecter from a string Thanks mpeloso@princeton.edu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#26647) next »