Thread
:
Function too convoluted?
View Single Post
Feb 1st, 2008, 10:40 AM
#
15
grimpirate
King of Portal
Join Date: Sep 2005
Posts: 431
Rep Power:
4
Re: Function too convoluted?
One final correction it can work the way you said Sane, but it needs one extra step:
PHP Syntax
(
Toggle Plain Text
)
function
comparator
(
$key
,
$value
)
{
return
$key
<
$value
;
}
$foo
=
'comparator'
;
print_r
(
$foo
(
0
,
1
)
)
;
function comparator($key, $value){ return $key < $value; } $foo = 'comparator'; print_r($foo(0, 1));
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever..
GrimBB
|
Mimesis
grimpirate
View Public Profile
Visit grimpirate's homepage!
Find More Posts by grimpirate