how to convert object data to array in php

I think every PHP coders have come across Arrays and stdClass Objects. Sometimes it’s very useful convert Objects to Arrays and Arrays to Objects. This is easy arrays to objects converting. Here we are converting Objects to Arrays. $obj = new stdClass(); $obj->key1 =’Value1′; $obj->key2 =’Value3′; $obj->key3 =’Value3′; $obj->key4 =’Value4′; $array = (Array)$obj; print_r($array); //Array […]

How to remove empty elements from array in php

Different ways of removing empty array field in PHP, let’s start learning removing empty array field in PHP A quick way to remove empty elements from an array is using array_map and array_filter without a callback function. $array = array( ‘key1’=>’value1’, ‘key2’=>’value2’, ‘key3’=>’value3’, ‘key4’=>’ ‘, ‘key5’=>’ ‘, ‘key6’=>null, ); $filterArray = array_map(‘trim’,$array); $filterArray = array_filter($filterArray); […]

Core php interview questions answer

PHP interview questions and answers for freshers Welcome In this section we are providing you some frequently asked PHP Interview Questions which will help you to win interview session easily. What is PHP? PHP is a server side scripting language commonly used for web applications. PHP has many frameworks and cms for creating websites.Even a […]

How to submit html form without page refreshing jquery php

This tutorial will teach you about creating html form that will submit information without refreshing page using jQuery and Ajax Instead, an notification message will display on successful submission. First we have need to create HTML form.  <form id=”myForm” method=”post”>      Name:    <input name=”name” id=”name” type=”text” /><br />      Email:   <input name=”email” id=”email” type=”text” /><br […]

How to develop php script for forget password

Here we are developing code of how to develop php script for forget password. this is very simple and easy script for forget password in php. you just have need some knowledge of php, mysql and some basic php applications such as login script and user registration and some mysql queries. Lets we Start Php […]

find difference between two date using php

find difference between two date using php In This Post we are writing tutorial for finding difference between two date using php. We can find difference between two date easily in php using some pre define functions. <?php $date1 = “1999-06-19”; $date2 = “2016-01-27”; $diff = abs(strtotime($date2) – strtotime($date1)); $years = floor($diff / (365*60*60*24)); $months […]


We have already seen SQL SELECT command to fetch data from MySQL table. When you select rows, the MySQL server is free to return them in any order, If you want result in sort form you can sort a result set by adding an ORDER BY clause that names the column or columns you want […]

how to remove warnings in PHP

How to remove warnings in PHP What is the best way to remove or turn off warning messages in PHP? When you will see a warning message output to the browser after running your PHP script and you may want to turn off that warning message. Obviously, it’s a lot better to fix that instead. […]

can sessions work without cookies

Can sessions work without cookies? If yes so, how does a session work without cookies enabled in PHP? This is a great interview question because even if you do not know the answer, you could come up with a fairly accurate answer on your own with some basic knowledge of PHP sessions and some analytical […]


Crypto Currency

PHPKIDA provides free online the best real-time crypto market price, news, predictions, index with graphs & historical data for 2000+ coins including bitcoin, ethereum, & altcoins from major cryptocurrency exchanges.

Visite Tool

Icon Generator

PHPKIDA provides free online icon generator. Our icon generator help you to edit, modify, resize and customize icon for your website and applications. Convert to a shap you like add icon border, you can change icon border color, border size, background color, icon shadow, icons color, icon size in your own way and save it as a png image.

Visite Tool

Youtube Video Downloader

PHPKIDA provides Free online YouTube video downloader to download YouTube videos quickly in MP4, 3GP, and more. Search your video and free fast download youtube videos.

Visite Tool

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.