3 and learning from a book (php a begginers guide, vikram vaswani) and am following his guides and have entered his code
$whoami="sarah";
echo gettype ($whoami);
$whoami=99.8;
echo gettype ($whoami);
unset ($whoami);
echo gettype ($whoami);
the error i am getting is this
Undefined variable: whoami in C:\inetpub\wwwroot\etc..
I was hoping someone could explain why? also, off topic but if anyone knows if this book is anygood or not for a complete begginer could they recommend a better one as i have had quite a few errors when entering code ?
thankyou