graham23s Posted December 15, 2007 Share Posted December 15, 2007 Hi Guys, im not sure if this is possible but from this function: <?php function make_flv($uploadedmoviesdir,$outputflvdirectory,$var_loggedinuser) { $timestamp = time(); ## convert string $encode = "/usr/bin/ffmpeg -i $uploadedmoviesdir -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 $outputflvdirectory"; $scrcap = "/usr/bin/ffmpeg -i $outputflvdirectory -s 320x240 -ss 00:00:05 -t 00:00:01 -f image2 flvmovies/screencaps/$var_loggedinuser-$timestamp-screencap.jpg"; $filein = "/usr/bin/ffmpeg -i $outputflvdirectory 2> flvmovies/filestats/$var_loggedinuser-$timestamp-info.txt"; ## execute exec($encode); exec($scrcap); exec($filein); return("$var_loggedinuser-$timestamp-screencap.jpg"); } ?> i want to return both: $var_loggedinuser-$timestamp-screencap.jpg"); and $var_loggedinuser-$timestamp-info.txt i can return 1 fine but not two, can anyone tell me how i can return both? cheers Graham Link to comment https://forums.phpfreaks.com/topic/81854-returning-multiple-values-from-function/ Share on other sites More sharing options...
rarebit Posted December 15, 2007 Share Posted December 15, 2007 ... return array($x, $y); } list($x, $y) = myfunc(); Link to comment https://forums.phpfreaks.com/topic/81854-returning-multiple-values-from-function/#findComment-415846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.