RE: [PHP] slicing and dicing strings
| From: | admin | Date: | Wed, 27 Jun 2012 22:32:42 +0000 |
| Subject: | RE: [PHP] slicing and dicing strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318311@lists.php.net to get a copy of this message | ||
Read
http://php.net/manual/en/function.substr.php
-----Original Message-----
From: Kirk Bailey [mailto:kbailey@howlermonkey.net]
Sent: Wednesday, June 27, 2012 6:15 PM
To: php-general@lists.php.net
Subject: [PHP] slicing and dicing strings
ok, it slices and dices, but how?
in python, to print all but the last char in string FOO, we say print
FOO[:-1] But this seems to bark like a basset hound in php. Whyfore?
Now tihs tyro is seeking sage words to help me understand this.
RTFM is not sage words; if you don't want to help me please don't waste the
bandwidth.
Would anyone care to help me understand this without dedicating 4 precious
and in over demand/under supply hours to RTFM?
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-----+
| BOX |
+-----+
think
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php