Re: [PHP] slicing and dicing strings

2012-06-28 Thread Geoff Shang
On Wed, 27 Jun 2012, tamouse mailing lists wrote: RTFM with no hint of where to look is a problem. But the dictum of Read here in the manual will surely be the best thing. You will then know where to look for future questions. Personally, I've got better things to do with my time than spend

RE: [PHP] slicing and dicing strings

2012-06-28 Thread admin
-Original Message- From: Geoff Shang [mailto:ge...@quitelikely.com] Sent: Thursday, June 28, 2012 5:12 AM To: php-general@lists.php.net Subject: Re: [PHP] slicing and dicing strings On Wed, 27 Jun 2012, tamouse mailing lists wrote: RTFM with no hint of where to look is a problem

Re: [PHP] slicing and dicing strings

2012-06-28 Thread Daniel Brown
On Wed, Jun 27, 2012 at 6:15 PM, Kirk Bailey kbai...@howlermonkey.net wrote: 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? It is a longer syntax which, in

[PHP] slicing and dicing strings

2012-06-27 Thread Kirk Bailey
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

RE: [PHP] slicing and dicing strings

2012-06-27 Thread admin
Read http://php.net/manual/en/function.substr.php -Original Message- From: Kirk Bailey [mailto:kbai...@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

Re: [PHP] slicing and dicing strings

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 5:15 PM, Kirk Bailey kbai...@howlermonkey.net wrote: 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? As said, PHP is not Python. Pretty much

Re: [PHP] slicing and dicing strings

2012-06-27 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:d889b8e1-2eab-4f36-83cb-8a52b5ec6...@3ft9.com... WARNING: May contain traces of sarcasm. If it would really take you 4 hours to find this out via the manual or Google then I think it would be 4 hours well spent: 3 hours 55 minutes learning how