Jump to content

arguments in a function shothand...


asmith

Recommended Posts

lol I'm very very very sorry guys for this stupid question.

 

How do you write it with the if statement?

for example :

 

echo myfunction(1,2, (if 2 ==2?  5 : don't send anything));

 

In other words, the shorthand of this :

 

if (2 == 2)

    echo myfunction(1,2,5);

else

    echo myfunction(1,2);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.