.PHP
Some PHP Snippets and ideas
Tuesday, April 6, 2010
Eval string with PHP tags
›
Here is another non-obvious twist on PHP. I have been trying to evaluate tags in a php string without having to run preg_match or do any o...
2 comments:
Monday, March 22, 2010
Image class
›
Ok, here I go. The very first violation of my own rule - not posting anything obvious. This time however I needed to find a good class Imag...
Sunday, March 7, 2010
Implied Class Pattern with __autoload()
›
One more thing about not-so-obvious capabilities of PHP: Implied Class Pattern . Let's say you are implementing a Model layer in your ...
1 comment:
Tuesday, March 2, 2010
Wrapping it up nicely :: Base Object :: Part 6
›
So, now we have the whole library. Now we need a name. I will call it dotPHP. Just because I like the name. Now, why not even do the defin...
Extending PHP classes at run time :: Base Object :: Part 5
›
In part 4 of this article we have extended objects at run time. Now wouldn't it be nice if we could do the same with classes? Also at ru...
1 comment:
Extending objects in PHP at run-time :: Base Object :: Part 4
›
So, on our quest to add JavaScript flexibility to PHP we need another thing common in many JS frameworks: ability to extend objects at run t...
Dynamically adding methods in PHP :: Base Object :: Part 3
›
If you are a seasoned javascript developer, coding in PHP must feel like riding a bike in a straight jacket. Some of the features that you m...
Static Constructor in PHP :: Base Object :: Part 1
›
In these series I will show a few neat examples of what is possible with PHP5-5.3. I will not reiterate on the obvious, but try to expose th...
1 comment:
Dynamically adding properties in PHP :: Base Object :: Part 2
›
I promised in my previous article that I will not talk about the obvious in PHP. However, this one deserves mentioning, since we will be bui...
1 comment:
Home
View web version