Re: [PHP] removing chars from string
I know that it is length, and I gave the correct length for an 11 character string minus two characters. But as always, there is more than one way to skin a mule. $string = '12345678901'; $jayString = substr($string, 0, 9); $kevinString = substr($string, 0, 8); echo $jayString; // echos 123456789 echo 'br /'; // echos 12345678 echo $kevinString; It turns out to skin a mule is to outsmart him. Because mules aren't actually stubborn, they're just smarter than most of us. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with arrays
for ($i = 0; $i count($array1); i++) $array1[$i][] = $array2[$i]; from kevin l'huillier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Object Oriented PHP (5)
PHP has inspired me to become a better programmer. I have been actively reading books as well as online content to try to become better at designing and programming object oriented web applications. My primary focus is PHP. Will you help a pragmatic programmer in training out by suggesting some worthwhile resources? I have read the following already: PHP 5 Power Programming Advanced PHP Programming Pragmatic Programming Gang of Four Design Patterns php.net/oop zend.com php 5 resources most of ibm object design articles http://www.solarphp.com/home/ and many many many shitty online tutorials and source repositories ...and some of my OO code is still in production use 10 years after it was written. Inspiring. Please don't Lynch me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php