milan Posted July 30, 2012 Share Posted July 30, 2012 If any where in PHP Code a syntax looks like this i.e <?= "<any word>" ?> what does it mean.....? Link to comment Share on other sites More sharing options...
divinedesigns1 Posted July 30, 2012 Share Posted July 30, 2012 If any where in PHP Code a syntax looks like this i.e <?= "<any word>" ?> what does it mean.....?<? ?> is just a short hand of writing <?php ?> if thats what your trying to find out Link to comment Share on other sites More sharing options...
milan Posted July 30, 2012 Author Share Posted July 30, 2012 but when i tried this code <?= "america"; ?> it does not get executed. , i done any mistake in writing the code Link to comment Share on other sites More sharing options...
thescientist Posted July 30, 2012 Share Posted July 30, 2012 (edited) maybe you should read the tutorials firsthttp://www.w3schools...php/default.asp it would explain that those symbols tell the interpreter to start executing any code within the start and end markers however, your code doesn't really do anything. if you were trying to output something to screen, you would actually need to write PHP code that did that. i.e. <?phpecho 'america';?> Edited July 30, 2012 by thescientist Link to comment Share on other sites More sharing options...
milan Posted July 30, 2012 Author Share Posted July 30, 2012 Thanks for the suggestion I will do that..... Link to comment Share on other sites More sharing options...
justsomeguy Posted July 30, 2012 Share Posted July 30, 2012 The "<?=" is a shortcut to output a value that requires the PHP option for short tags to be enabled. It won't work otherwise. It's generally bad practice to use it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now