These are ten commands that you really need to know in order to get started with UNIX. They are probably similar to commands you already know for another operating system. 

CommandExampleDescription
1.     lsls
ls -alF
Lists files in current directory
List in long format
2.     cdcd tempdir
cd ..
cd ~dhyatt/web-docs
Change directory to tempdir
Move back one directory
Move into dhyatt's web-docs directory
3.     mkdirmkdir graphicsMake a directory called graphics
4.     rmdirrmdir emptydirRemove directory (must be empty)
5.     cpcp file1 web-docs
cp file1 file1.bak
Copy file into directory
Make backup of file1
6.     rmrm file1.bak
rm *.tmp
Remove or delete file
Remove all file
7.     mvmv old.html new.htmlMove or rename files
8.     moremore index.htmlLook at file, one page at a time
9.     lprlpr index.htmlSend file to printer
10.   manman lsOnline manual (help) about command
Its pretty easy to find out if a string exists in another string in PHP. There are predefined functions provided by PHP to do this job.

Using strpos - 

echo strpos("I love php, I love php too!","php");

Output: 7

 The strpos() function finds the position of the first occurrence of a string inside another string.
Explode — Split a string by string

Syntax:
array explode ( string $delimiter , string $string [, int $limit ] )

To remove empty elements after explode,

array_map('trim', explode(",", $myString));
The below basic shortcut keys are a listing of shortcut keys that will work with almost all IBM compatible computers and software programs. It is highly recommended that all users keep a good reference of the below shortcut keys or try to memorize the below keys. Doing so will dramatically increase your productivity.


Shortcut KeysDescription
Alt + FFile menu options in current program.
Alt + EEdit options in current program
F1Universal Help in almost every Windows program.
Ctrl + ASelect all text.
Ctrl + FOpen find window for current document or window.
Ctrl + SSave current document file.
Ctrl + XCut selected item.
Shift + DelCut selected item.
Ctrl + CCopy selected item.
Ctrl + InsCopy selected item
Ctrl + VPaste
Shift + InsPaste
Ctrl + PPrint the current page or document.
HomeGoes to beginning of current line.
Ctrl + HomeGoes to beginning of document.
EndGoes to end of current line.
Ctrl + EndGoes to end of document.
Shift + HomeHighlights from current position to beginning of line.
Shift + EndHighlights from current position to end of line.
Ctrl + Left arrowMoves one word to the left at a time.
Ctrl + Right arrowMoves one word to the right at a time.