|
as some of you may know i love jumping in with the sharks when it comes to learning new code languages (meaning i get into the HARD stuff instead of starting small) what i dont get is why the different set up when opening a php script? <? <?php what difference is there? and another thing why is there so many stinkin' dollar signs!...lol i dont get it...lol there isnt any money involved in the code
|
Grab this Headline Animator
|
|
|
|
<?php is more proper.
$ is to signify variables.
|
|
|
|
Some PHP config files don't allow for the use of <? but <?php is globally acccepted.
You can also use <% %> and <script type="text/PHP"> or something like that.
|
|
|
|
|
Some PHP config files don't allow for the use of <? but <?php is globally acccepted. You can also use <% %> and <script type="text/PHP"> or something like that. <script language="php"> Anyways, its recommended to use the first one though.
|
|
|
|
I went with the JS syntax. But yeah, <?php is recommended as Eric said, but I think more people use <?
|
|
|
|
|
|
Learn about variables, control structures, and functions.
From there on you should, for the most part, be able to get most everything.
|
|
|
|
|
Shorthand isn't enabled everywhere, therefore if you are releasing anything, or doing something like that, <?php is the best.
|
|
|
|