some code explaining
Posted: Thu Jan 01, 2009 8:00 pm
i've been doing php for a few months now.. so far its been easy to use,
however i stumbled across a page which has a code like this
so i have this piece of code right, i'm guessing the ? is suppose to mean if satisfy the previous condition
however i'm pretty loss at that ":"
can anyone explain to me what does the ":" mean?
and lastly.. can you also point me to a page where i can learn all these "special characters" cause i dont know the keyword to search for thanks!
however i stumbled across a page which has a code like this
Code: Select all
$path = !empty($_REQUEST['path']) ? $_REQUEST['path'] : dirname(__FILE__);however i'm pretty loss at that ":"
can anyone explain to me what does the ":" mean?
and lastly.. can you also point me to a page where i can learn all these "special characters" cause i dont know the keyword to search for thanks!