Newbie here, I thought I had a solution to my looping problem
I thought I could call a function twice in PHP
11
Newbie here,
I thought I had a solution to my looping problem
function foo($a,$b) {
do stuff
}
$a='blah'
$b='yuck'
foo($a,$b)
// but I cannot run it a second time with the same variables
$a='yum'
$b='mmm'
foo($a,$b)
//The function will not run the second time around. Is this a php rule I haven't run across yet?
Thanks
Rick
I thought I had a solution to my looping problem
function foo($a,$b) {
do stuff
}
$a='blah'
$b='yuck'
foo($a,$b)
// but I cannot run it a second time with the same variables
$a='yum'
$b='mmm'
foo($a,$b)
//The function will not run the second time around. Is this a php rule I haven't run across yet?
Thanks
Rick
- mojojuju
- h4x0r
- [1] reply
- hometutor
- [1] reply
- PHR
- [ 1 ] Thanks
- [1] reply
- David Beroff
Next Topics on Trending Feed
-
11