Tuesday, 15 September 2015

php - difference between two URL strings -


मैं बना

  परिभाषित करें ('SITE_URL', siteURL ()); // रिटर्न http://example.com/dir/ परिभाषित करें ('CKEDITOR', SITE_URL.'plugins / ckeditor / ckeditor.js ');   

SITE_URL और पूर्ण URL के बीच 'अंतर' खोजने के लिए स्ट्रिंग ऑपरेशन क्या है? उर्फ http://example.com/dir/plugins/ckeditor/ckeditor.js ताकि मैं केवल plugins / ckeditor / ckeditor.js भाग लौटा दूं >

<पूर्व> str_replace ($ site_url, '', $ fullurl);

No comments:

Post a Comment