SarkariResultess QA Bank

PHP object कैसे create करते हैं? इसका सही PHP syntax क्या है?

Other 0 Views Verified
PHP object कैसे create करते हैं? इसका सही PHP syntax क्या है? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

$user = new User();

$user = new User();
Additional Explanation
new class object instantiate करता है।
Verified

$user = User.new();

$user = User.new();
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

new object User;

new object User;
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

$user = create User();

$user = create User();
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।