Page 1 of 1

block statement question

Posted: Sat Jan 07, 2006 3:23 pm
by jonathant
Forgive my programming ignorance on this one...

Is there a way to set aside a block of code and call that block from the same file? I know you can use include() or require() to do the same thing by calling another file, but I want to call just a block of code from within the file.

Posted: Sat Jan 07, 2006 3:25 pm
by timvw
Please read the section about functions.

Posted: Sat Jan 07, 2006 3:45 pm
by alex.barylski
eval

Posted: Sat Jan 07, 2006 3:47 pm
by jonathant
ha! I just read how stupid that question was. I guess I have forever tainted my phpdev network username.