Categories
- agile (3)
- algorithms (16)
- css (29)
- download (3)
- featured (46)
- flex 3 (25)
- javascript (138)
- micro tutorial (202)
- PHP (108)
- portfolio (5)
- snippets (7)
- video (1)
- web development (167)
- zend framework (80)
Category Archives: PHP
Object Cloning and Passing by Reference in PHP
In PHP everything’s a reference! I’ve heard it so many times in my practice. No, these words are too strong! Let’s see some examples. Passing Parameters by Reference Clearly when we pass parameters to a function it’s not by reference. … Continue reading
Posted in micro tutorial, PHP
Tagged C, Clone, Cloning, Comparison of programming languages, Computer programming, Computing, Curly bracket programming languages, Java programming language, PHP, PHP programming language, Procedural programming languages, Scripting languages, Software engineering
3 Comments
Some Notes on the Object-oriented Model of PHP
PHP 5 introduces interfaces and abstract classes. To become a little clearer, let us see their definitions. Interfaces Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods … Continue reading
Posted in PHP
Tagged abstract classes, Abstract type, C, Class, Computer programming, Computing, Education, experiment, how-to, iheritance, Interfaces, Java programming language, Method, micro tutorial, Object-oriented programming, PHP, php 5, php class definition, php experiment, php tutorial, php5, Polymorphism in object-oriented programming, Software design patterns, Software engineering, tutorial, Virtual function
5 Comments
Thing to Know About PHP Arrays
Consider the following case. We have an array with identical keys. $arr = array(1 => 10, 1 => 11); What happens when the interpreter reaches this line of code? This is not a syntax error and it is completely valid. … Continue reading
Posted in micro tutorial, PHP
Tagged Arrays, C programming language, Comparison of programming languages, Computer programming, Computing, Data structures, Data types, Foreach, how-to, interpreter, micro tutorial, PHP, PHP arrays, PHP micro tutorial, php tutorial, programming, tutorial, web development, webdev
Leave a comment
PHP: Does SimpleXMLElement have toString() method? No, better use asXML()!
SimpleXML is a PHP extension that “provides a very simple and easily usable toolset to convert XML to an object” [1]. Thus you can pass a link to an XML file and SimpleXML will return an object. $xml = simplexml_load_file(’path_to_the_file’); … Continue reading
Posted in PHP
Tagged communication, Computer file formats, Computing, Markup languages, Open formats, OSI protocols, PHP, Technical communication, XML
1 Comment







