Function within Function

Well i have been coding in C++ and C# for quite a long
What i really ought to  know was that you cannot define a function with in a function!

I axiomatically thought that the rule would imply to all of the languages! But i was wrong!
In php you can do functions with in function so as with PASCAL!


function myfunc($a)


function func2($b)


function func3($c)


echo “I got “.$c;
echo “I got “.$b;
func3(“asdfasdf “);
echo “I got “.$a;

and the out put would be
X-Powered-By: PHP/5.2.0

Content-type: text/html

I got abcI got asdfI got asdfasdf



~ by Azeem on January 29, 2008.

4 Responses to “Function within Function”

  1. =D aakhir kaar, aap nay maan hi lia 😛

  2. “I axiomatically thought that the rule would imply to all of the languages!”

    That was bad of me 🙂

  3. wow that’s so creepy rofl.

  4. 顶~~~~我叫剑侠世界资料站,希望能交个朋友哈!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: