|
Posted by Sanders Kaufman on 02/02/07 09:14
John Smith wrote:
> Is there something similar to goto or gosub, I did some checking and was
> laughed at, as you can probably tell I'm a newbie. Maybe I should be calling
> an external script? Any assistance is gratefully accepted.
John - you're no newbie! Gosub went out in the seventies.
What you want is to write a function, and to call that function.
<?php
function fnHello($x) {
echo "Hello $x.";
}
fnHello("world");
?>
That would output "Hello world".
Navigation:
[Reply to this message]
|