Is is possible to ask for either this string or that as input for a function or do I have to write a condition? It's really just for the sake of tityness. Thanks Bubble
I don't think that you can require than a function's argument is a specific, you can define a default for the argument though.
function input( $input = "bar" ) { echo $input; } input( "foo" ); // Echoes foo input(); // Echoes bar
Oh well, guess I have to use an if then. Thanks Shrike Bubble