25 May 2007 at 06:31 #1 Wimnat Wimnat Associate Joined 19 Jun 2006 Posts 162 Location Swansea, Wales I'm 99% sure this is possible because I think I've done it before but I can't remember how. I have this line... Code: $avrStatArray[$i] = db_getXXXAvr($row["Call-ID"]); I want to replace 'XXX' with $var A little help...
I'm 99% sure this is possible because I think I've done it before but I can't remember how. I have this line... Code: $avrStatArray[$i] = db_getXXXAvr($row["Call-ID"]); I want to replace 'XXX' with $var A little help...
25 May 2007 at 08:49 #2 Wimnat Wimnat Associate OP Joined 19 Jun 2006 Posts 162 Location Swansea, Wales Sorted... Code: $var = 'db_get . $x . Avr'; $avrStatArray[$i] = $var($row["Call-ID"]);
25 May 2007 at 12:33 #4 Wimnat Wimnat Associate OP Joined 19 Jun 2006 Posts 162 Location Swansea, Wales jdickerson said: Can't you just concant, as per your original: Code: $avrStatArray[$i] = 'db_get . $x . Avr' . ($row["Call-ID"]); Click to expand... Possibly. I didn't try. I need to pass the variable to another function anyway.
jdickerson said: Can't you just concant, as per your original: Code: $avrStatArray[$i] = 'db_get . $x . Avr' . ($row["Call-ID"]); Click to expand... Possibly. I didn't try. I need to pass the variable to another function anyway.