jd2007 Posted October 27, 2007 Share Posted October 27, 2007 <?php class example { // echoes hello function a() { echo "Hello"; } // echoes goodby function b() { echo "Goodbye"; } } ?> Link to comment https://forums.phpfreaks.com/topic/74960-is-it-possible-for-classes-not-to-have-properties-but-only-methods-eg-below/ Share on other sites More sharing options...
teng84 Posted October 27, 2007 Share Posted October 27, 2007 that class is valid Link to comment https://forums.phpfreaks.com/topic/74960-is-it-possible-for-classes-not-to-have-properties-but-only-methods-eg-below/#findComment-379069 Share on other sites More sharing options...
trq Posted October 27, 2007 Share Posted October 27, 2007 Try it and see. Surely its quicker than taking up space on the board. Link to comment https://forums.phpfreaks.com/topic/74960-is-it-possible-for-classes-not-to-have-properties-but-only-methods-eg-below/#findComment-379130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.