Hi everybody,
Is it possible to give a property default value without using constructor?
Acute
-2
Junior Poster
Recommended Answers
Jump to Postif you are referring to classes, see below:
class className{ private $property1="hello"; public $property2="goodbye"; }
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.