undefined variable inside function php
snippet in php

undefined variable inside function php

user6012

$myId = 0;
function run(){
  global $myId;
	echo $myId;
}