Multidimensional Arrays in PHP

In my previous post, I discussed about arrays in PHP. Arrays can contain multiple values at a time. Arrays can also contain other arrays inside them. When you create arrays inside another array, that’s a multidimensional array. Multidimensional arrays can be two-dimensional, three-dimensional or more. But it gets a little complicated if you create a bigger one. […]

Continue reading

Arrays in PHP

Arrays are variables with a super power. While an ordinary variable can contain a single value, an array can contain multiple values at a time. Previously, when we discussed data types in PHP, we saw that booleans, integers, floats – these can represent only one value at a time. But arrays can contain more than […]

Continue reading

PHP Data Types at A Glance

PHP supports specific data types. You can’t just use anything within PHP scripts. In this post, I will discuss the data types which PHP supports and you can use. Basically PHP supports eight types of data. These data types are categorized into Scalar types, Compound types and special types. First, let’s check the Scalar types. […]

Continue reading

How to Connect a MySQL Database with PHP

If you want to fetch information from database or insert information to a database using PHP, first you need to establish a connection between MySQL database and PHP. You can easily manipulate databases from your PHP scripts once you have connected them. Here  I will show you, how you can connect your MySQL database with […]

Continue reading