$the_id = get_id();
function get_id()
{
echo 5;
}
echo $the_id;
The problem is the function will not assign a return value to $the_id, it will show a blank where the 5 should be.
get_id() will show the number 5.
Is there a way to get the function get_id() to assign the value of 5 to $the_id variable? Thanks, cm