ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-dev
pear-dev
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved