Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Biggy131658yBy all means, marry. If you get a good wife, you'll become happy; if you get a bad one, you'll become a philosopher.
-Socrates -
@Cyanite that explains the marriage problems. Too many mixed procedural and declarative issues.
-
@jpichardo That's true. The function should probably be setEmotion()
That should probably accept a class of Emotion, with properties of type, and amount
Emotion {
$type = "Happy";
$amount = 100
}
Good news everyone!
unset ($marriage);
If (isset ($marriage))
self::sadness ();
else
Self::joy ();
undefined