C
C
Constantine2015-09-19 19:17:55
PHP
Constantine, 2015-09-19 19:17:55

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

5 answer(s)
O
OnYourLips, 2015-09-19
@OnYourLips

and did not find any information on new features in PHP.
Everything is in the documentation.

M
MK, 2015-09-19
@Maxsior

php.su and php.net read.
<? ?>and <?php ?>are no different.
A <?= ... ?>is similar<? echo (...)?>

V
Vitaly Inchin ☢, 2015-09-19
@In4in

What can be read on php > 5.2?

Read the manuals on php.net
And what is the difference between these pieces of code:
<? ?>
<?= ?>
<?php ?>
<? ?>- the old design is no longer used (although it will work), <?php ?>- accordingly, the new one.
As for the entry <?=?>, this is a shortened output of echo . This piece of code <?="123"?>is essentially equal to this <?php echo "123" ?>.

A
Anton Babilya, 2015-09-19
@lordonx3

Read better how to upgrade to php 5.5 :)

S
sivabur, 2015-09-20
@sivabur

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 question

Ask a Question

731 491 924 answers to any question