Well, day 7 here, and it’s time for Strings. This is a long chapter, and a lot to blog about. So I estimate 2-3 days on this topic. Plus I don’t have a lot of time tonight to write a lot.
Well, day 7 here, and it’s time for Strings. This is a long chapter, and a lot to blog about. So I estimate 2-3 days on this topic. Plus I don’t have a lot of time tonight to write a lot.
I really didn’t expect to spend three (3) days on just arrays, but it seems like they are pretty important. I just have to be careful not to fall behind, I still have ~9 more chapters after this and only ~24 days. Well, instead of stressing about this now, let’s finish up arrays!
Let me start off by saying, "Merry Xmas!" It’s been a long day of family, friends, fun, and traveling, but I have time now to sit down and study/post. Today is still dealing with arrays, and there’s a lot to cover.
Well, it’s Christmas eve and I’d rather not spend too much time working on this. But this is an important chapter as arrays are incredibly useful in PHP. What makes Arrays so powerful is that they can contain any type of data, that includes strings, binary data, objects, and even more arrays (multi-dimensional). And while most other languages require array keys to be auto-incrementing numeric values starting at 0, PHP arrays are associative, meaning they let you have keys with any number or string.
Now, the stuff in this chapter is going to be quite repetitive to any normal PHP developer, so I’ll try to just cover the more interesting items.
This is a short chapter on custom functions, so this will therefore be a short post. As you know, functions are the bread-and-butter of PHP code as they allow you to encapsulate repeatable code in a reusable manner, making the transition away from spaghetti code.