Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada

Wed Aug 28, 2002 2:51 pm

Lets say I make a function that takes the inputed value and manipulates it then orints it out... That all works great for me, but I was wondering if I could make my function be used without having to put the '(' and ')' just like how the print function doesn't need those, it works with just the double quotes.


Thu Aug 29, 2002 2:32 am

Any user defined function HAS to be in the format of:
functionName ([arg1.[arg2[arg3...]]]) { function parameters }

You can't create a function without the paranthesis otherwise it wouldn't know where to get the variables from!