Magento 2 useful command Part 3
if you are magento 2 developer so this post is helpful to you. before I created one blog called “Magento 2 useful command Part 1” so I mentioned some command related to Cache, Admin, Modules, Indexer and Info commands. in second blog “Magento 2 useful command Part 2” I mentioned…
Magento 2 useful command Part 2
if you are magento 2 developer so this post is helpful to you. before I created one blog called “Magento 2 useful command Part 1” so I mentioned some command related to Cache, Admin, Modules, Indexer and Info commands. now in this post I will share some other command like…
How we can use forEach loop in React JS
I am explaining you, how to use foreach loop in React JS. the foreach loop is considered as it is an array, it will iterate each item from an array with help of a callback. I hope you have knowledge of javascript fundamental. below is the example of javascript forEach…
Magento 2 useful command Part 1
Today, I am explaining you, if you are developing Magento 2 website so this post is very useful for you. I am providing you list of magento 2 command. here is some basic commands list that are related to Cache, Admin, Modules, Indexer and Info commands. I have also mentioned…
React JS – How to Allow Numbers in Textbox?
I am explaining you, how to allow only numbers in textbox in React JS. I am giving you simple example that will allow only numbers in input field react.Below example, I write that code on change event on inputbox. I take one text field for number and you can enter…
How to extract data/content between HTML Tags in PHP
I am explaining you, how to extract data/content between HTML Tags in PHP.preg_match() function provide functionality to extract text between HTML tags with REGEX in PHP. we can get content between tags with the use of regular expressions with preg_match() function in PHP. Example : we can find result will…
PHP check if website is online
I am explaining you, how to check website availability/online with use of PHP and Curl. you can check if website is online/available in PHP. It uses PHP and cURL code. after check website’s status we can define it is online/available or not. Output :…
comparing string in PHP by strcmp() function
I am explaining you, how to compare two string in PHP by using the strcmp() function. it is case-sensitive function. strcmp() function will take two string as parameter string1 and string2. if function will return < 0 then the first string is less than the second string, if it will…
How to Send an Email in PHP
I am explaining you, how to Send an Email in PHP. email if very important functionality in website. here I will use mail() function to send email in php. in PHP’s mail() we can send email to many recipients using headers. we can add headers such as From, Cc, and…
How To Run PHP File with Windows Command Line
If you want to run PHP file from windows command line, it must installed PHP in your windows system. in my system already Wamp server installed so I will show you how to run PHP file with Windows command line. I am assuming that Wampp server is installed in your…
How to compare two dates in PHP?
I am explaining you, how to compare two dates in PHP.Provided two dates (checkdate1 and checkdate2) and the task is to compare the two dates. Comparing two dates in PHP when the two dates are in the same format. we can compare two dates if it is in same format…
How to get random value from an array PHP
I am explaining you, How to get random value in from an array PHP. we can use the shuffle() function in PHP to randomly shuffle the order of values in an array. Result:…
How to reindex or remove an index array element in PHP ?
I am explaining you, how to reindex an array element in PHP with examples. we have an array named basicWebsiteInfo , we have some website information like website, url. At first, it is indexed correctly as 0,1,2. Result: Now, to understand the reindex array things, at first I am unset…
How to Get/Fetch website URL in Laravel?
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…
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:…
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:…
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:…
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…
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…
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:…
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…
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…
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…
How to Disable a Anchor Tag in HTML using css, jquery and javascript ?
you want to disable anchor tag in html using css, jquery and javascript. you will learn how to disable a tag in html. I am explaining you, how to disable anchor tag in html using css. let’s see example : Example 1 : I am explaining you, how to disable…