10.times {puts “I am sexy and I know it!”} #Output “I am sexy and I know it!” #Output “I am sexy and I know it!” #Output “I am sexy and I know it!” #Output “I am sexy and I know it!” #Output “I am sexy and I know it!” #....(10 times)…
that couldn’t be instantiated. ▶ Modules provides a namespace and prevent name clashes ▶ Modules could be “mixin” to any class that satisfy conventions described in documentation (Should quack and swim like a duck). ▶ In PHP 5.4 Traits is an equivalent to Mixins
provides collection classes with several traversal and searching methods, and with the ability to sort. The class must provide a method “each”, which yields successive members of the collection.
notation? $f_amount = 100.00; $s_string = “I am definitely a string”; ▶ How many coding guide lines there? ▶ PEAR, ▶ Zend, ▶ Wordpress ▶ Your company standard