Tag Archives: php tutorials

Date difference using PHP

Realpath in php

Returns the absolute path name. Syntax: string realpath(string $path) realpath() expands all symbolic links and resolbes references to ‘/./’ ,’/../’ and extra ‘/’ characters in the input path and returns the canonical absolute pathname example ——-

Out put of the above as below /test/hello on windows realpath will change unix style paths to windows… Read More »

Scope Resolution Operator-::

Double colon (::) this is used to access the static,constant and overridden properties or methods of a class. Example1 ——–

self,parent and static are used to access the value inside the class Example2 ——–