Can't escape PHP within a function to get plain HTML
Posted: Thu Aug 27, 2009 12:55 pm
Hi there,
Got a little issue with PHP 5.3.0
When I enter this code :
nothing happens. Don't get anything in my browser (tried in IE and Firefox). The text doesn't show and I don't get any error (although PHP is configured to display error).
Strangely enough, I ran some code that I got from a tutorial in my browser with the same type of functions and it worked just fine.
I'm a bit confused.
Got a little issue with PHP 5.3.0
When I enter this code :
Code: Select all
<?php
function my_function() {
?>
My function was called
<?php
}
?>Strangely enough, I ran some code that I got from a tutorial in my browser with the same type of functions and it worked just fine.
I'm a bit confused.