bash-3.2$ php -a Interactive shell
php > $a = null || "hi" php > echo $a php > $b = "hi" php > echo $b
As you can see here, nothing is being echoed. Why is that? I'm using Mac OS X lion. = (fresh install)
You've forgoten to put semicolons at the end of each line. Should be:
php > $a = null || "hi"; php > echo $a; php > $b = "hi"; php > echo $b;
2.1m questions
2.1m answers
60 comments
57.0k users