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"; } } ?> Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.