[PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC
by Graham Christensen other posts by this author
Oct 25 2006 4:59PM messages near this date
[PEAR-DEV] [PEPr] Comment on Networking::Net_CheckMAC
|
[PEAR-DEV] Re: Foreign Keys in XML
Graham Christensen (http://pear.php.net/user/itrebal) has commented on the proposal for Netw
orking::Net_CheckMAC.
Comment:
($uppercase) ? $macaddr = strtoupper($macaddr) : $macaddr =
strtolower($macaddr);
Either switch that to an if-else statement, or do:
$macaddr = ($uppercase)?strtoupper($macaddr):strtolower($macaddr);
Much cleaner and easier to read.
Note: Ternaries are generally avoided.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=454
--
Sent by PEPr, the automatic proposal system at http://pear.php.net
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Andrew Teixeira
Greg Beaver
Andrew Teixeira
Justin Patrin
Christian Weiske
Andrew Teixeira
Andrew Teixeira
Arnaud Limbourg
Justin Patrin
Andrew Teixeira
Andrew Teixeira
Andrew Teixeira
Stefan Neufeind
Arnaud Limbourg
Justin Patrin
Graham Christensen
|