Monday , 27 May 2019
Breaking News
Home > 2018 > January

Monthly Archives: January 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-5ceb2c4da302f202796612/] Now save this file and run it. Read More »

Ad Test