Posta Tagged: PHP Basics


PHP preg_match examples to validate user inputs

PHP preg_match examples that can be used for real-life projects are hard to come by. Here I try to elaborate regex in PHP by using actual codes I have used to validate user name, email, phone number, etc. However, as usual, I suggest checking the basics of Regex from the official PHP website. Also, we […]


Most common PHP string manipulation questions

Learn PHP string by answering the most common string manipulation questions

These are the most common PHP string manipulation questions that I had come around when I was getting started with PHP. Most of these easy concepts still confuse students. But let’s take few minutes and take them one by one. How do I combine two strings together? The first common PHP string manipulation question is […]


A look into PHP implicit casting

PHP Implicit Casting

PHP implicit casting is very common. But before we see what it mean, let’s see why implicit casting happens. Again, PHP is supper-friendly. Also, it is a loosely typed language. In other words, PHP allows us to declare a variable and simply use it. And, PHP determines the data type of the variable automatically. Note: […]