Re: CamelCase conversion to proper_c_style

From: Date: Mon, 27 Apr 2009 08:40:07 +0000
Subject: Re: CamelCase conversion to proper_c_style
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-292010@lists.php.net to get a copy of this message
Hi, > I know it's probably heresy for a lot of coders, but does anyone know a > function or class or regexp or somesuch which will scan through a PHP > file and convert all the CamelCase code into proper C-type code? That > is, "CamelCase" gets converted to "camel_case". I snagged a bunch of > someone else's PHP code I'd like to modify, but it's coded the wrong > way, so I'd like to fix it. > > (I'm teasing you CamelCase people. But I really would like to change > this code around, because it doesn't happen to be my preference.) I'd say, if you must, then change as you go. If you do it all in a oner you'll likely introduce a shed load of problems. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate)

« previous php.general (#292010) next »