Changeset 980 for trunk/engine/include/function.php
- Timestamp:
- 08/13/10 10:12:19 (22 months ago)
- Files:
-
- 1 modified
-
trunk/engine/include/function.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/include/function.php
r896 r980 413 413 } 414 414 } 415 416 417 function func_underscore($sStr) { 418 return strtolower(preg_replace('/([^A-Z])([A-Z])/',"$1_$2",$sStr)); 419 } 420 421 function func_camelize($sStr) { 422 $aParts = explode('_',$sStr); 423 $sCamelized = ''; 424 foreach($aParts as $sPart) { 425 $sCamelized .= ucfirst($sPart); 426 } 427 return $sCamelized; 428 } 429 415 430 ?>
