2007. 10. 19, péntek keltezéssel 11.33-kor Jay Blanchard ezt írta:
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function ==
On 19/10/2007, afan pasalic [EMAIL PROTECTED] wrote:
Robin Vickery wrote:
On 19/10/2007, afan pasalic [EMAIL PROTECTED] wrote:
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some
Jay Blanchard wrote:
I don't think you can put a function name in a variable and call it like
$function($var).
Yes you can - it's basically the same as variable variables.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
yup! it works perfect.
obviously, it's MY fault.
:-)
thanks stut
-afan
Stut wrote:
afan pasalic wrote:
actually, what example you are talking about? I got jay's example only?
http://dev.stut.net/php/varfunc.php
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
afan pasalic wrote:
actually, what example you are talking about? I got jay's example only?
http://dev.stut.net/php/varfunc.php
-Stut
--
http://stut.net/
Stut wrote:
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function?
-afan
Stut wrote:
Jay Blanchard wrote:
I don't think you can put a function name in a variable and call it
Jay Blanchard wrote:
[snip]
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
Robin Vickery wrote:
On 19/10/2007, afan pasalic [EMAIL PROTECTED] wrote:
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
[snip]
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
$my_solution = $function($var); #
On 19/10/2007, afan pasalic [EMAIL PROTECTED] wrote:
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1'
Stut wrote:
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function?
I can only guess that you're not showing us the code you're actually
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
$my_solution = $function($var); # this
2007. 10. 19, péntek keltezéssel 11.15-kor afan pasalic ezt írta:
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if
hi
I have a problem with calling functions:
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
Jay Blanchard wrote:
[snip]
?php
function solution1($var1){
// some code
}
function solution2($var2){
// some code
}
function solution3($var3){
// some code
}
if ($function == 'solution1' or $function == 'solution2' or $function ==
'solution3')
{
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function?
I can only guess that you're not showing us the code you're actually
running. See the
actually, what example you are talking about? I got jay's example only?
Stut wrote:
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: Fatal error: Call to undefined function
solution1() in ... even the function itself is just above the line that
calls function?
17 matches
Mail list logo