Archive for month: October, 2010

Drive PHP with break and continue

Break and continue are two very common jobs in almost every programming language. Both play their role somewhere in loops. Loop may be for, foreach, while, do...while or switch.

In this article, I’ll be using for each loop to demonstrate the concept of break and continue. They work in same way in almost every programming language. break will be your friend to save your loop from more iteration and continue will be really helpful to boost your logic.

Read more

Read more

PHP Basics for Beginners

This article aims to serve for beginner PHP developers but those who are comfortable with PHP will also find this article useful. Basically, I’ll tell you the difference between some of PHP commonly used functions/features. By the end of this article you will have a clear difference among:

  • include VS require
  • include_once VS include
  • require_once VS require
  • echo VS print
  • Single quote VS Double quote

Apparently all functions in each above point work in similar fashion. However, they are slightly different from other. Continue reading to explore the differences.

Read more

Read more
© Copyright - Tech Mug