adding a dynamic value to a string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevrelland
Forum Commoner
Posts: 73
Joined: Mon Jan 08, 2007 7:41 am

adding a dynamic value to a string

Post by kevrelland »

i want to add a dynamic value to this string instead of the test.jpg

$xmp_parsed = ee_extract_exif_from_pscs_xmp ("test.jpg",1);

from this $row_info['filename'];
how do i do it
cheers
kevin
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

Set a variable equal to your row value

Code: Select all

$varInfo=$row_info['filename'];
Now put your new variable in place of you text

Code: Select all

$xmp_parsed = ee_extract_exif_from_pscs_xmp ($varInfo,1);
Make sure your filename isn't stored as an array though!
kevrelland
Forum Commoner
Posts: 73
Joined: Mon Jan 08, 2007 7:41 am

Post by kevrelland »

cheers
works perfectly
Post Reply