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 some short command so you […]
Author: Azhar Shaikh
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 only number in that textbox. […]
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 be stored in $matchdata variable. […]
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 : Azhar ShaikhHello, Welcome to webdeveloperindia.in. I am a full-stack web developer. […]
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 return > 0 then the […]
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 Bcc. we can also use […]
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 local system. you need to […]
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 so directly we can check […]
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: Azhar ShaikhHello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – [email protected] | Skype – azaruddin23. I have knowledge of […]
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 it by using the unset() […]