Naming php function and php class based on your variable name -


i have php class , php function used , since im making few of edits same files on , off have rename class , function based on file working on , code

  class myclassname{        function myfunctionname{        }   } 

and later used

$myvariable = myclassname::myfunctionname($getwhatineed); 

so

$default_cf_name ="desiredname";    class prefix_$default_cf_name{        function prefix_$default_cf_name{        }   } 

you may want read on object-oriented php beginners.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -