Jim Lucas wrote:
[snip]
if (!isset($pmatch) || substr($key,0,strlen($pmatch)) == $pmatch) {
print "$key = $value";
}
[snip]
I would change the above the the following:
if ( empty($pmatch) || ( strpos($key, $pmatch) === 0 ) ) {
print "$key = $value";
}
it would be slightly faster
love th
On 01/09/2012 07:16 PM, Donovan Brooke wrote:
Just to share, a Mr. Harkness forwarded me a consolidated version of my
code.. basically substituting the innards for:
if (!isset($pmatch) || substr($key,0,strlen($pmatch)) == $pmatch) {
print "$key = $value";
}
Cheers,
Donovan
I would change
Just to share, a Mr. Harkness forwarded me a consolidated version of my
code.. basically substituting the innards for:
if (!isset($pmatch) || substr($key,0,strlen($pmatch)) == $pmatch) {
print "$key = $value";
}
Cheers,
Donovan
--
D Brooke
--
PHP General Mailing List (http://www.php.ne
On Mon, Jan 09, 2012 at 10:42:59AM -0500, Marc Guay wrote:
> > some pretty natives php functions exists to do the job :
>
> But how many times in my life will I have write echo ""; ???
> Does anyone have a handy solution? (Make this the default behavior?
> Add a "even more human-readable" flag to
Ashley Sheridan wrote:
>
>
>Marc Guay wrote:
>
>>> some pretty natives php functions exists to do the job :
>>
>>But how many times in my life will I have write echo ""; ???
>>Does anyone have a handy solution? (Make this the default behavior?
>>Add a "even more human-readable" flag to the fun
Marc Guay wrote:
>> some pretty natives php functions exists to do the job :
>
>But how many times in my life will I have write echo ""; ???
>Does anyone have a handy solution? (Make this the default behavior?
>Add a "even more human-readable" flag to the function? Create a
>simple macro in Ap
> some pretty natives php functions exists to do the job :
But how many times in my life will I have write echo ""; ???
Does anyone have a handy solution? (Make this the default behavior?
Add a "even more human-readable" flag to the function? Create a
simple macro in Aptana 3?)
Argz,
Marc
--
P
Hi,
some pretty natives php functions exists to do the job :
var_export — Outputs or returns a parsable string representation of a variable
debug_zval_dump — Dumps a string representation of an internal zend value to
output
var_dump — Dumps information about a variable
print_r — Prints human-read
8 matches
Mail list logo