Can i make a peice of code to generate a function and then call that function, so say i need to call 4 colms from a database but thn i need to call 6 not 4 it would update the function code so that i could use it over and over in different projects.
if this makes any sence.
Best way to do it is using a parameter:
yourfunction($number_of_rows) { echo "Function will pull " . $num_of_rows . " from database"; return $whatever; } ... .... .. $4rows = yourfunction(4); .. . .. ... $6rows = yourfunction(6);
[man]eval()[/man]