Category : PHP

ItSolutionStuff.com have tutorials for PHP, here you can study articles of PHP, PHP posts collection, most popular and useful tutorials of PHP, here you can find list of all relevant posts and example about PHP, we have lists of tutorials and examples about PHP.very simple and quick example collection of Latest PHP category.




How to add prefix in each key of PHP Array?

How to add prefix in each key of PHP Array?

Whenever you require to add one character or more to each and every key of array then most of the people would like prefer add key using for loop or foreach loop. But we can do this without using any kind of loop. using array_combine(), array_keys() and array_map() through we can add prefix on each .....

By Hardik Savani | February 13, 2016 | Category : PHP

How to get minimum key value of array in PHP?

How to get minimum key value of array in PHP?

Sometimes, you need to get minimum key value of your array but you try to get with loop and any function etc, but in bellow example you can see we can get smallest key value from our php array by using min() and array_keys(). So, let's try to use in your code this way: <strong>Example:</strong> <pr.....

By Hardik Savani | February 12, 2016 | Category : PHP


How to set scroll to bottom in jquery?

How to set scroll to bottom in jquery?

Sometimes, we need to set scroll bottom as default by using jquery, in bellow example you can see i use scrollHeight for get the total height of scroll class div with scroll, and at last i use animate with scrollTop attribute and set bottom, So Basically when your page will load then automatically s.....

By Hardik Savani | February 11, 2016 | Category : PHP

How can i print php variable in jquery?

How can i print php variable in jquery?

If you are working on php and you need to print your php variable inside the javascript then you can simple get value. you can use "" for get value of php variable. in following example you can see : <strong>Example:</strong> <pre class="code language-html"> <script type="text/javascript"> va.....

By Hardik Savani | February 8, 2016 | Category : PHP

How to get product using rakuten marketing api in PHP?

How to get product using rakuten marketing api in PHP?

In this post you can find how can use rakuten linkshare API in our php website. first you need to create class for retrieve data from "https://pubhelp.rakutenmarketing.com/hc/en-us" website. now i give to example of product search, but if you use this class then you can easy to implement your other .....

By Hardik Savani | February 6, 2016 | Category : PHP

PHP: How to count files in folder?

PHP: How to count files in folder?

In PHP, you are work on php and you want to need display count number of files in specific folder then you do, glob() through you count number of file are there in specified folder. now in following example you can see "/var/www/test" in this folder, count how many files are there in that folder. gl.....

By Hardik Savani | February 4, 2016 | Category : PHP

How to find day from specific date in PHP?

How to find day from specific date in PHP?

Whenever you need to det day like Monday, Tuesday etc from full date. i mean you have any specific date like "2015-10-10" and you want to get day then you can do in both way first using strtotime() and second using DateTime object. In Following example you can see i give you both way to get day fro.....

By Hardik Savani | February 3, 2016 | Category : PHP

How to check empty or null in Mysql Query?

How to check empty or null in Mysql Query?

If you want to check empty or null value with conditional statement like case when and if in table row with Mysql database. you like to check empty or null value form table then you have multiple way check that. first we check empty value with case when statement then following example. <strong>Emp.....

By Hardik Savani | January 31, 2016 | Category : PHP

How to copy one table data into another table using Mysql Query?

How to copy one table data into another table using Mysql Query?

If you are working on php or any php framwork and you want to copy one table into other table by using sql query, so you could do it using simple SELECT and INSERT statement. just you need to think how you can use. In Following example you can see how to fetch data from "post" table and how to inse.....

By Hardik Savani | January 30, 2016 | Category : PHP

How to remove null values from array in PHP?

How to remove null values from array in PHP?

you have array with null value and you want to remove all null value from that array without loop. you can remove your all null value from array without loop. PHP array_filter function through you can remove all null value, you see following example how to remove null value : <strong>Example:</stro.....

By Hardik Savani | January 28, 2016 | Category : PHP