date_add

Its an alias of DateTime::add()
We can add number of of days, months, years, hours and seconds with  a DateTime object.

Example

<?php

$date = new DateTime(“24-May-2011 20:15:22”);
echo $date->format(“d-m-Y H:i:s”).'<br />’;

date_add($date, new DateInterval(“P1Y”));
echo ‘<br />’.$date->format(“d-m-Y”).’ : I Year’;

?>

Output

24-05-2011 20:15:22

24-05-2012 : I Year

checkdate

It checks whether the date is valid or not

General Format :checkdate ( int $month , int $day , int $year )

Example :

<?php
if(checkdate(12, 31, 2000))
echo “Given Date Is Correct”;
?>

Output

Given Date Is Correct

Date functions

XML-RPC

XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism. also refers generically to the use of XML for remote procedure call, independently of the specific protocol.

XML-RPC permits programs to make function or procedure calls across a network.

XMLRPC uses the HTTP protocol to pass information from a client computer to a server computer.

XML-RPC uses a small XML vocabulary to describe the nature of requests and responses.

XML-RPC client specify a procedure name and parameters in the XML request, and the server returns either a fault or a response in the XML response.

XML-RPC parameters are a simple list of types and content – structs and arrays are the most complex types available.

RPC

Remote Procedure Call (RPC) is an inter-process communication that allows a computer program to cause a subroutine or procedure to execute in another address space (commonly on another computer on a shared network) without the programmer explicitly coding the details for this remote interaction. That is, the programmer writes essentially the same code whether the subroutine is local to the executing program, or remote. When the software in question uses object-oriented principles, RPC is called remote invocation or remote method invocation.

JSON

JSON or JavaScript Object Notation, is a lightweight text-based open standard designed for human-readable data interchange. It is derived from the JavaScript scripting language for representing simple data structures and associative arrays, called objects. Despite its relationship to JavaScript, it is language-independent, with parsers available for many languages.

A format to represent any PHP type, except a resource, that can be used later in JavaScript

The JSON format was originally specified by Douglas Crockford, and is described in RFC 4627. The official Internet media type for JSON is application/json. The JSON filename extension is .json.

The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, serving as an alternative to XML.