October 2008

PHP Optimization Tips

1. If a method can be static, declare it static. Speed improvement.

2. str_replace is faster than preg_replace, but strtr is faster than str_replace .

3. $row['id'] is 7 times faster than $row[id] , because if you don't supply quotes it has to guess which index you meant, assuming you didn't mean a constant.

4. Do not use functions inside of for loop, such as for ($x=0; $x < count($array); $x) The count() function gets called each time.

5. echo is faster than print

Resume of Mohiuddin Ahmed Abir

Contact Information

706, Dewan Villa(Ground Floor, Right Side, flat-2),
West Shewrapara, Mirpur, Dhaka
Email: abirmmu@yahoo.com , abirmmu@gmail.com
URL: http://abir.kumarkhali.com/

Career Objective:

To have a challenging position in a progressive organization where I can utilize my technical knowledge, experience, skill and creativity to build my carrier in IT field to be good Professional.