Is it possible to get those values inside of function and use those outside of function here is my code:
Your can use global scope. I.e.
$s = 1;
function eee()
{
global $s;
$s++;
}
echo $s;
Your can got var/return var... if your need return more that 1 value - use array
function eee( $s)
{
return $s++;
}
eee($s=1);
echo $s;
Prefer 2'd. Cause global scope operationing - may cause problems, when app become's large.