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
$var = new open();
$var->url = '';
$var->title = 'Testing Site';

echo some_function($var);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.