SarkariResultess QA Bank

PHP trait use कैसे करते हैं? में error आए तो solution क्या है?

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

Answer & Explanation

4 Answers
Verified Correct Answer

use HasRoles;

use HasRoles;
Additional Explanation
use trait functionality class में compose करता है। पहले exact error message, line number और input value check करें।
Verified

include trait HasRoles;

include trait HasRoles;
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

extends HasRoles;

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

trait HasRoles;

trait HasRoles;
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।