maburker Posted January 25, 2010 Share Posted January 25, 2010 Hello, I am new here and I have been racking my brain to figure out something simple. At least I think it should be simple. I need to add an image to a php string. The string is listed below. $string[facebook] = 'Facebook'; Now the mentioned string appears on a users profile as Facebook : Become A Fan Our finished project should use facebooks icon and then have the link as mentioned above. I don't want to create an image because we already have the image. Is there a way to reference an image in the string? Ex: $string[facebook] = '<img src="http://............./images/networks/facebook_32.png">'; Now the strings are located in a lang file that other php files calls on for the strings. I can't find the correct method that will work. Any help or feedback is appreciated! Link to comment https://forums.phpfreaks.com/topic/189680-need-help-with-adding-images-to-strings/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.