SarkariResultess QA Bank

PHP substring position खोजने का function क्या है? को secure तरीके से कैसे implement करें?

Other 0 Views Verified
PHP substring position खोजने का function क्या है? को secure तरीके से कैसे implement करें? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

find_pos($text,'php')

find_pos($text,'php')
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

string_index($text,'php')

string_index($text,'php')
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

$text.position('php')

$text.position('php')
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

strpos($text, 'php')

strpos($text, 'php')
Additional Explanation
strpos() first occurrence position या false देता है। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।