Php for beginners — Part2

datetime

To string format

Add days/months/hours

Get Now datetime

get date or time

compare date

Unix timestamp

Timezone

Get all timezones

Php map/filter/reduce

Include and require

Require :if file does not exist throw error

HTTP

get http GET parameter

get http POST parameter

get http POST json body

upload file

get client ip address

server variables

Get cookie

File/Folder

Read

Write

get current directory

get directory file/folders

Other useful methods

basename ($path) get filename

Object Oriented

Class

Abstract Class

Interface

static

Trait

namespace

Error/Exception

log errors into error file

config : ‘error_log’ = some ‘path’ , log_errors=’1’

Exception

getFile() : path of where exception thrown

Software Developer/Technical Writer&Author/body builder