タグ
REST with PHP Sunday, January 20, 2008 The simplest form of REST with PHP comes with XML + CURL. PHP can use the features available within the language to send and receive data, preferably in XML format in case of Web services, over HTTP. One... 続きを読む
まあ自分の場合はこう書くかなあ class Klass { private function __construct() { } static function getInstance() { static $obj = null; return $obj ? $obj : $obj = new self; // 5.3以降なら return $obj ?: $obj = new self; } } Klass::getInstance();... 続きを読む

