I am explaining you, how to calculate number of Age from date of birth in PHP. if you want to show user’s age from date of birth so you can use this process and show Age in php. here I will use some function like date(), date_create() and date_diff() that need to used to calculate […]
Author: Azhar Shaikh
PHP how to get all the keys of an associative array?
I am explaining you, how to get all the keys of an associative array in PHP. we need to use PHP array_keys() function to extract the keys in an associative array. Example : Output : Otherway, I will apply foreach loop so it will also show key and its related values. Example : Output : […]
How to get browser window width and height in Javascript ?
Hi Folks, I am explaining you how to get browser window width and height in Javascript . we can get dimensions of the browser window height and width peoperties using window object in javascript. window.outerWidth : using the javascript code. it will provide overall width of the browser window.window.outerHeight : it can provide overall height […]
How to merge two array into single array in php ?
I am explaining you, how to merge two array into single array in php. we can use array_merge() function in php code so that will merge two different array into single array.here I having two array called arrayfirst and arraysecond array, I will merge both array into single array with arraymerge new array. Example : […]
PHP How to check if a variable is null?
I am explaining you, how to check if a variable is null or not in PHP. I will check null values through is_null() function in PHP. Example : Output : Azhar ShaikhHello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – [email protected] | Skype – azaruddin23. I have knowledge of PHP, Laravel, Magento […]
PHP how to generate random numbers?
I am explaining you, how to generate random numbers in PHP. I will use rand() function to generate random numbers. rand() function can able to use to generate a random number with specific range like starting number is 1 and ending number id 999 so it will generate random number in between. you can use […]
How to select all text content of input textarea in ReactJS
Today, I am explaining you, how to select all text content of input textarea in ReactJS. if you are working in ReactJS so this post in very useful to you. I will show you through some events like onClick, onFocus and useRef hook. I am explaining you three ways with use of e.target.select() method. Table […]
How to remove spaces from string in ReactJS
Today, I am explaining you, if you are working in ReactJS so how to remove all spaces from string in ReactJS. in some custom requirement we need to remove spaces from string so we can use it. here, I will use string replace function for remove spaces from string. Example : Output : Azhar ShaikhHello, […]
How to submit HTML Form Using jQuery Ajax in PHP
Hello, In this tutorial, I am explaining you how to submit HTML form’s fields values/data using jQuery Ajax to PHP file. AJAX is useful for send form data to server site without refresh to page. if you want to send data to PHP file without reload you need to use Ajax request process.Here, I am […]
use parseInt() in JavaScript
in this post, I will explain about the parseInt function in JavaScript. how to use parseInt() in JavaScript. parseInt() parses a string and returns as an integer or NaN. The main purpose of use the parseInt function is to extract number from a string. it returns value to an actual number. Syntax : Example : […]