this way may be what you'd like :
$thing = new whatever ();
$with = array (doStuff', anotherThing', doThis', doThat', doThis',
doThat', anotherThing', doThis', /* etc. etc. */ );
foreach($with as $w) $thing->$w();
--
> Is there a way I can make this type
Is there a way I can make this type of code neater?
$thing = new whatever ();
$thing->doStuff ();
$thing->anotherThing ();
$thing->doThis ();
$thing->doThat ();
$thing->doThis ();
$thing->doThat ();
$thing->anotherThing ();
$thing->doThis ();
// etc. etc.
S
2 matches
Mail list logo