मैं कुछ स्ट्रिंग्स देखने के लिए एक स्ट्रिंग का परीक्षण करना चाहता हूं।एकाधिक शब्दों के लिए preg_match
यानी:
$string = "The rain in spain is certain as the dry on the plain is over and it is not clear";
preg_match('`\brain\b`',$string);
लेकिन उस विधि केवल एक शब्द से मेल खाता है। मैं एकाधिक शब्दों की जांच कैसे करूं?
preg_match_all() –
कृपया संपादित सवाल – Autolycus