October 14, 2019

PHP check if string contains space between words

$string = ” 45674657476″; if(preg_match(‘/\s/’,$username)){ echo ‘space exist’; }else{ echo ‘spaces not exist’; } by trim function , you can remove white spaces : trim($string,””);
September 17, 2019

PHP 7 Features

PHP 7 – Quick Guide PHP 7 is a major release of PHP programming language and is touted to be a revolution in the way web […]
July 25, 2019

AWS – create username password to connect EC2

You may be in the situation where you need to access your EC2 instance from any machine, not necessarily your own. Here’s a solution to let you […]
May 16, 2019

Laravel Interview Questions

[siteorigin_widget class=”SiteOrigin_Widget_Accordion_Widget”][/siteorigin_widget]
October 10, 2018

MYSQL – Queries logical questions

1) Find the 2nd last salary. What will happen when two salaries are same in MySql? +—-+———+——–+ | id    | name    | salary | […]
October 10, 2018

PHP Array Logical Questions

1) Find 2nd largest value in an array $numbers = array(5, 3, 7, 9, 6, 8); sort($numbers); echo $numbers[count($numbers) - 2]; //Output: 8 2. Find a […]
September 21, 2018

PHP Interview Questions and Answers

1) What is PHP? PHP is a web language based on scripts that allow developers to dynamically create generated web pages. 2) What do the initials […]
September 18, 2018

How connect Amazon EC2 using Filezilla

There are two sections of steps to establish connection using FileZilla to Amazon EC2 instance. To connect to Amazon EC@ instance, import the key file to […]
September 6, 2018

Javascript Timer Events

<!DOCTYPE HTML> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> p { text-align: center; font-size: 60px; margin-top: 0px; } </style> </head> <body> <p id="demo"></p> <script> // Set […]