PHP

Category

35 posts found

17 Mar 2019
3.11K
No Comments

New version 7.2 of PHP is little bit restrict for calling functions and passing parameters, now count() function will only count variable and it will thrown an error when parameter is not array. Here is quick fix I have create my own function for counting array or object and it

Post in

1 Mar 2019
0.79K
No Comments
PHP Latest Trends in 2019

When people talk about PHP, they can’t help but mention the W3Tech statistics. PHP is popular and is known to be used by 78.9% of all the websites worldwide. To this day, the use PHP tends to be slowly deteriorating when it’s compared to its 85% usage globally just 2

Post in

10 Jul 2018
0.51K
No Comments

I need that function to delete 10 minutes old files from my project, remove_x_minutes_old_files function required two parameters $path for directory path and $in_minutes for minutes how much old file you want to delete

Post in

15 May 2018
1.47K
No Comments
PHP Cli Create zip file with password – 7zip

You cannot create zip file with password in php unless update php version from older to new atleast php 7.2. The following is best solution to create zipfile with password through 7zip or any other exe file with #cli command. Create zip file with password in command line interface (CLI).

Post in

12 Aug 2016
4.78K
No Comments

Array column #php function added after release version of (PHP 5 >= 5.5.0, PHP 7), If error occurred please check the version of php by calling #php builtin function phpversion(); this function will works if you have php version greater than 5, If array_column function works on localhost and not defined on live

Post in

11 Aug 2016
3.82K
No Comments
PHP print triangle diamond

This is easy and too much loop less code to write diamond and triangle shapes Following code is diamond with the technique of css inline styles Result of diamond code ************************************ Following code is normal triangle with the technique of css inline styles Result of triangle code * ** ***

Post in

29 Jul 2016
5.65K
No Comments
PHP check is mobile tablet or desktop

Now modern days we are using many type of devices to access the websites and applications. Websites and application are showing different sizes contents and media data for smartphones, tablets and desktops like showing tiny size of logo of profile image showing for mobile, medium size showing for tablet iPad devices and the

Post in

27 Jul 2016
2.58K
No Comments

Define get_avg function This function can give result with an array or argument, If need this code copy and defined it in your project library but don’t republish it anywhere share and comment or improvements suggestion for better code will be appreciated. Call get_avg function with array argument. The function return

Post in

30 Mar 2016
3.02K
2 Comments

This code is rare used in #projects but I need it to generate email with domains for listings, in listings I have different types of complete url and domains I wrote this code to generate email address contact@sdtuts.com Here is some of results example of function

Post in

29 Feb 2016
4.18K
No Comments

I was working on my site featuring posts for dynamic data which I can get from csv and show listing in Ordinal number format then I think it should be a define function to dynamically set ordinal number format. Here is function I have defined and posted here. In function

Post in