shortcuts

From: Date: Mon, 15 Dec 2003 08:11:26 +0000
Subject: shortcuts
Groups: php.general.es 
Request: Send a blank email to general-es+get-43642@lists.php.net to get a copy of this message
Que venatjas/inconvenientes tiene escribir en shortcuts? Hay más? Lo veo muy atrayente usar la escritura corta. Estas dos sentencias producen el mismo resultado: if ($kid == 0) { $where_clause = "catfatherid=$kid"; } else { $where_clause = "catfatherid=$kid"; } $where_clause = ($kid==0)? "catfatherid = 0": "catfatherid=$kid"; Josep Ma. Aribau Cano

« previous php.general.es (#43642) next »