hi programmer masto
how are you
i have next to no code experience and i need to learn #PHP for my job i guess
does anyone have some beginner-friendly resources you like that i can look at?
please keep in mind that references to similar concepts/how things are done in other languages will not help me at all
@xyzzy Hi, I'm not a PHP programmer, but this resource looks nice to me:
"PHP 101: PHP For the Absolute Beginner"
the official php docs are actually pretty good in a lot of ways, but exercise caution about trusting user-supplied examples of things there.
i'm actually... kind of unsure what i'd recommend as a starting point for a beginning programmer.
codeaccademy is a good sort of confidence builder, it'll get you familiar with the sort of basic vocabulary of the language. I'd find out what database technology you'll be interfacing with and pick up a cookbook for it as well, cookbooks are great sources of quick, functional code when you are starting out and they give you some pretty useful examples that let you start to get an idea of how the language is used in that context. From there, it's a process of trial and error.
most likely, if this is your first time dipping your toes into the water so to speak, you'll want to go over HTML basics as well. You'll probably be using HTML forms and a few other things if you're in the PHP sphere and it's useful to understand how that stuff works in your templates.
@xyzzy I learned a lot of the basics of PHP by learning WordPress theme building. If you know HTML/CSS, that's a great place to start, especially if you're going to be doing the user-facing side of a PHP application.
@xyzzy Bare minimum, it’ll give you some idea how PHP is structured and how to do function calls inside a document. If you’re really feeling energetic, download a simple WordPress plugin, figure out how it works, and either modify it or try making your own. It’s all PHP!
@xyzzy I'm not going to reply the question directly, because I'm pretty sure you have access to google et alia the same as the rest of us.
I did like how "please keep in mind that references to similar concepts/how things are done in other languages will not help me at all" meant you are already thinking the right way.
You just have to put in the time.
There are no shortcuts.
@xyzzy this might help? https://www.w3schools.com/php/default.asp
I don't have a resource for you that explains php beginner friedly. But I've got a tip how I learned some php (I still reference the php website if I dont know a keyword etc). Have an idea of a little programming project. Not just the simple echo "hello world";, but something a bit more complex.
Learn the basics with some beginner tutorials, there are probably some tutorials on phpon youtube as well. And then start a small php project. Ask questions along the way
With the basics i mean loops, echo, the use of arrays (these words may not mean anything to you right now, but if you look into some beginner tutorials, you'll learn what these are and how to write a loop or array).
And as someone already pointed out: it's a good idea if you already know html
condescending? non-direct answer Show more
@xyzzy if you can do this, i would recommend, instead of learning PHP + programming, which is quite a big concept, learning how to do [thing your boss wants you to do in php]
the result of this is: it'll be easier to find resources ("fetch url in php" vs "php tutorial"), you'll learn better imo (learn by doing is my MO), and you won't waste time on parts of PHP you'll never use
you can build on this knowledge for successive things you need to do/know
@sehqlr @xyzzy @AFresh1 That's a good litmus test. I should start asking something like, "It's important to provide devs with the tools they need to succeed. We work in an ever changing industry where it is necessary to constantly learn new technologies. How do you support your devs so that they can stay on top of the industry?"
When I was teaching myself programming, I went to the nearest public library and looked at their Programming section. Those books are prefixed 00 in the dewey decimal system, after UFOlogy books and before library science. I personally recommend either O'Reilly (realistic animals on the cover in BW) or Starch Free Press books (fun comic book style covers, often with robots)