How do I "fix" this code so that the variable from inside the function is available outside of it once I've called it?
<?php function Add($one, $two) { $total = $one + $two; } Add(5,6); echo $total; ?>
Thanks, Corey
Try adding "return"
<?php function Add($one, $two) { $total = $one + $two; return $total; } Add(5,6); echo $total; ?>
Thanks...