Så här hälsar man på PHP


function a($a) {
$a = $a == 1 ? 'y' : 'n';
$b = $a != 1 ? 'a' : 'x';
return $a | $b;
}
echo a(1);
echo a(2);

This entry was posted in livet and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>