How to filter any text from string or URL

You can find any text from the string but specially this method will work for finding the http ,www or https from URL .

Ex- suppose you have saved the image in your database like imagename.png or http://readyourlessons.com/image/asdf.png  then you can check by the given method .

Note :- FULL_BASE_URL.$this->webroot  this is for the CakePHP so another developer can pass the URL. You can use this method in the web-service or API.

 

 

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *