PHP
Category
35 posts found
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
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
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
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).
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
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 * ** ***
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
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
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
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
TOP COMMENTED
laravel remove public from url
This is weird thing from #laravel on fresh installation, so…
3 comments
Pakistani Web Designer’s Web Designing…
Web Design Illustrations - IdealHut.com by Design-Maker…
2 comments
MEASURE UNITS PX, CM, IN, MM CONVERSION…
2 comments
28 Android IOS Mobile Application Frameworks
jQuery Mobile Ionic: Advanced HTML5 Hybrid Mobile App Framework Mobile…
2 comments
20 jQuery HTML5 Video Player for Website
Video.js The Player Framework MediaElement.js - HTML5 video player Create…
2 comments