Answer the question
In order to leave comments, you need to log in
What can be read on php > 5.2?
I downloaded a couple of books from 2012, 2013 and did not find any information on new features in PHP.
First of all, he is interested in new models of interaction with the database, namespaces, closures and lambdas, new object-oriented features, new classes.
Advise what not be books and it is very desirable in Russian.
And what is the difference between these pieces of code:
<? ?>
<?= ?>
<?php ?>
Answer the question
In order to leave comments, you need to log in
and did not find any information on new features in PHP.Everything is in the documentation.
php.su and php.net read. <? ?>
and <?php ?>
are no different.
A <?= ... ?>
is similar<? echo (...)?>
What can be read on php > 5.2?
<? ?>
- the old design is no longer used (although it will work), <?php ?>
- accordingly, the new one. <?=?>
, this is a shortened output of echo . This piece of code <?="123"?>
is essentially equal to this <?php echo "123" ?>
.
Koterov 2009, well, the book is a good Russian practicing programmer + quite well-known) There, the author, among other things, describes the version that was not released.
There is no difference in what you wrote. Well, by default in the php 2 and 3 settings are disabled. Therefore, it is not recommended to use them. I will also say that if there is only php code in the file, it is not recommended to close it at the end (due to the peculiarity of sending data)<?php echo "123";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question