Wednesday, 5 July 2017

Extract part of string with PHP


Possible Duplicate:
How to extract img src, title and alt from html using php?






This would be an example of string:




$src = 'avatar';





$out should be http://localhost:81/avatars/admin.jpg



Problem is that http://localhost:81/avatars/admin.jpg is path to avatar of current logged user, so it's dynamically changed.




How to get $out in simplest way?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...