Good job ! Please add something about namespaces.
PHP Apprentice – An online, open-source book for learning PHP
11–20 of 75 posts
Re: PHP Apprentice – An online, open-source book for learning PHP
#12Why not teach it better? https://glot.io/snippets/f8g0wlar0d No wonder PHP developers have a bad reputation.
Re: PHP Apprentice – An online, open-source book for learning PHP
#13Looks great! Perhaps, making it possible to turn pages with the arrow keys on the keyboard would make it a bit easier to navigate.
.menu {
margin-bottom: 1.5em;
position: sticky;
top: 0;
z-index: 1000;
background: #fff;
padding: 10px;
}Re: PHP Apprentice – An online, open-source book for learning PHP
#14Nice job and well written. A nice addition would be how to use pdo. I'm appalled by the number of ressources I see online which are using the old mysql api.
For what it's worth though, my understanding is mysql_ functions are removed completely as of PHP 7. So that old documentation will just not work, rather than teaching people the least secure option of how to write their website.
Re: PHP Apprentice – An online, open-source book for learning PHP
#15Why not teach it better? https://glot.io/snippets/f8g0wlar0d No wonder PHP developers have a bad reputation.
Re: PHP Apprentice – An online, open-source book for learning PHP
#16Nice job and well written. A nice addition would be how to use pdo. I'm appalled by the number of ressources I see online which are using the old mysql api.
> I'm appalled by the number of ressources I see online which are using the old mysql api Recently authored articles? We have an internet filled with 20 years of PHP tutorials, and unfortunately for beginners there's not an easy way to evaluate if something utilizes modern best practices or is an Experts Exchange post from 2001.
Re: PHP Apprentice – An online, open-source book for learning PHP
#17Nice job and well written. A nice addition would be how to use pdo. I'm appalled by the number of ressources I see online which are using the old mysql api.
> I'm appalled by the number of ressources I see online which are using the old mysql api Recently authored articles? We have an internet filled with 20 years of PHP tutorials, and unfortunately for beginners there's not an easy way to evaluate if something utilizes modern best practices or is an Experts Exchange post from 2001.
Re: PHP Apprentice – An online, open-source book for learning PHP
#18Re: PHP Apprentice – An online, open-source book for learning PHP
#19Re: PHP Apprentice – An online, open-source book for learning PHP
#20Having skimmed through several of these chapters, though, I just feel like it’s too similar to the official PHP docs, even down to the TOC.
Wouldn’t it have been better for everyone to put this effort into improving the docs, rather than developing yet another book in a silo that likely won’t have the longevity we’d like?