Author Archive

                                           

Simple FAQ page HTML template

Screenshot of our FAQ page HTML template

Let’s develop a simple FAQ page HTML template that we can use in different projects. Most of the time, FAQ pages have a list of questions where users will be able to click. Upon clicking the answer will be displayed. Simple. First, we will go ahead and create our folder structure like this. Working with […]

                     

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: […]

                                           

Single or Double Quote String literals in PHP

String literals in PHP can be either double-quoted or single-quoted. Both work fine. However, the single quote string literal comes with few limitations. Limitations of single quote string literals in PHP In our example above, the second variable $name2, is a single quote string literal. Hence, its main limitations are:- Single quote string literals don’t […]

                     

Next level PHP with Composite Data Types

PHP Composite Data Types. Aray

In my last blog post on PHP data tapes, I discussed the four scalar PHP data types. Today, we will continue with composite data types. To recap, the scalar data types are good for variables representing a singular item, like price. But most of the time we are interested in a price of more than […]

                     

A Look into PHP Data Types.

A look into PHP data Types

PHP provides three groups of data types. The first group is scalar, which is used for single values. And the second is composite, which is a group of scalars. Finally, we have a special group. Let’s see them one by one. Scalar PHP Data Types Integer numbers Floating Point numbers Strings Booleans Composite PHP Data […]

                                           

10 All-time Basic Website Design Practices

responsive web design

More and more people are taking their inquiry online. Especially, people who are new to our city like the diaspora, diplomat community, etc. do not go around the streets of Addis Ababa looking for and asking the best restaurant. Instead, they just type a few words on google and something comes up. Like it or […]