DEV Community

Discussion on: PHP For JavaScript Developers

Collapse
lokidev profile image
LokiDev

So shes even more dependent on not learning sth. wrong.

How is someone supposed to learn and get better if everyone just sugar-coats you?

Thread Thread
ziizium profile image
Habdul Hazeez

So shes even more dependent on not learning sth. wrong.

How is someone supposed to learn and get better if everyone just sugar-coats you?

You might have missed the following comments and responses.

This comment:

Friendly reminder for a syntax shockingly difference between PHP and any other language. The dot ( . ) is the concatenation operator!

$hello = "hello";
$hello .= " world!";
echo $hello; // out: hello world!

For more info, check this out: positronx.io/php-concatenate-strin...

Her response:

I knew I was forgetting something, thank you!


Also this comment:

Setters are unnecessary in PHP. Use immutable private attributes and be happy.

Her response:

Thank you for the clarification!


And this:

Nice work Megan, just one thing: The spread operator is only available in PHP 7.4 everything else is awesome

And her response:

Thank you for the clarification! I'll add that in ASAP! 😀