On Wed, Jun 27, 2012 at 6:15 PM, Kirk Bailey 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 agreement with some folks, I
-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.
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
"Stuart Dallas" 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 to use the ma
On Wed, Jun 27, 2012 at 5:15 PM, Kirk Bailey 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 *nothing* else is Python
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
6 matches
Mail list logo