I am explaining you for how to get base url or home page url in laravel website. we need to get site URL for something share/image url or link, so you can get with help of url helper and URL facade. Both are same so you can use anywhere it means in controller or view. […]
Author: Azhar Shaikh
How to check URL is valid or not in PHP
I am explaining you, How to check URL is valid or not in PHP.I am going to explaining, how to check if a URL is valid in PHP using filter_var() function with FILTER_VALIDATE_URL filter. Use the following code to check if the URL is valid or not. Example : Result: Azhar ShaikhHello, Welcome to webdeveloperindia.in. […]
Javascript Remove First Element from Array?
you want to remove first element from an array without any loop. you can first element value from array without loop.I am explaining you, how to remove first value from an array. letβs see example : Result: Azhar ShaikhHello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – [email protected] | Skype – azaruddin23. […]
How to Concatenate String in PHP?
I am explaining you, how to concatenate strings in PHP.if you want to concatenate strings, you can use the concatenation operator . Example: Result: 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 1/2, Codeigniter, WordPress, Joomla, Shopify, Git, […]
how to get month name from date in PHP?
I am explaining you, we will learn how to get the month name from the date in PHP. The PHP provides very useful functions by using it we can easily format the date. Example 1: Extract Month Name From Date In this example, we have used the createFromFormat() function which helps us to provide month […]
how to get data between two dates with mysql query?
I am explaining you, how to get data between two dates with mysql query . you can easily understand concept of mysql query for between two dates. if you want to know about mysql query between two dates column then i will give simple example with solution query. Example: accessories Table: Query: Outout : Azhar […]
How to get image file size in php ?
I am explaining you, If you want to get image file size in php so you can easily get using filesize() in PHP. if you want to get image size then we can find it. It will return size on bytes. Example: Azhar ShaikhHello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – […]
How to remove duplicate values from Array in PHP?
I am explaining you, how to remove duplicate values from Array in PHP. it is simple to delete duplicate values from an PHP Array.PHP provide pre-define function array_unique that can remove duplicate values from Array. with the use of pre-define function array_unique() we can get only unique value from array. Example: Result: Azhar ShaikhHello, Welcome […]
How to Export Mysql Database with use of Command Line in Ubuntu?
I am explaining you, how to export mysql database using command line in ubuntu. you can understand a concept of mysql export database via command line. When you have large size of database then you can not easily export from phpmyadmin. so you need to use mysql commands for it. so here I am writing […]
Create Directory If It Doesn’t Exist in PHP.
if you want to create folder if not exist. you can understand a concept of php create directory if not exists. I am giving you example of php code to create directory if not exists. I am explaining you, how to create directory if not exist php. In example, we will use is_dir() and mkdir() […]