Friday , 19 April 2024
Breaking News
Home > 2018

Yearly Archives: 2018

Convert comma separated values to array in PHP

Assalam-o-Alaikuim! Dear friends today we will learn about PHP arrays. We often need to select records from database. There are different methods to select data from Database. But today we will learn something difficult. Problem: Suppose you have following string data that you want to convert into an array to perform action on it: $string = “one,two,three,four”; and you need ... Read More »

Finding Values in Comma Separated String Using MySQL

In most cases, We give the various options of choices to choose on websites in form of checkbox and stores various values of choices in a column of MySQL database as a comma separated . For example we store user’s preferred hobby in user table’s hobbies(varchar(250)) field(column). Value stored in this field may be like 1,2,5,6,1 or may be ‘sports’,’gardening’,’cooking’,’reading’. ... Read More »

How to Calculate Date of Birth in PHP

Assalam-o-Alaikum! Today we are going to learn that “How to Calculate Date of Birth in PHP“. I am giving simple code you should change values in code and see the result. Code is here: [crayon-66220f97521d3494134325/] Now save this file and run it. Read More »

Ad Test