I've been trying this for quite some time now but to no avail
I need to read a string and return the substring word that contains '@' for instance, there is a string like "andrew garfield invited as [email protected]" want the function to return substring "[email protected]"
tried explode, strpos, and substr so as to find the position of @ and then find spaces and then explode cant really get it to work your kind help is appreciated