Your Ad Here

Posted By

ishkur on 07/22/08


Tagged

ifsetor php6


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

iTony


ifsetor


 / Published in: PHP
 

  1. /**
  2.  * $id = ifsetor($_GET['id'], 1);
  3.  */
  4. function ifsetor($var, $def)
  5. {
  6. return isset($var) ? $var : $def;
  7. }

Report this snippet  

You need to login to post a comment.