Open PHP5 Object, No need to declare variable name first


/ Published in: PHP
Save to your folder(s)

I use this object verry often, so that I only need to pass one object as parameter on any function. No need to wory when we refactore the function
Usage:
$var = new open();
$var->url = 'http://www.world.com';
$var->title = 'Testing Site';

echo some_function($var);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.