<?phpfunction beDifferentFirstTime() { static $firstTime = true; if($firstTime) { $firstTime = false; echo "I will say this only once, so listen carefully\n"; } echo "The cabbage is in the cart. I repeat, the cabbage is in the cart.\n";}beDifferentFirstTime();beDifferentFirstTime();
Standard input is empty
I will say this only once, so listen carefully The cabbage is in the cart. I repeat, the cabbage is in the cart. The cabbage is in the cart. I repeat, the cabbage is in the cart.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!