Taken on 2016-11-12 from https://github.com/php/php-src/blob/69a3659d416b3ee74ed4a661b3eec414f18acc33/UPGRADING
- Backward Incompatible Changes
- New Features
- Changes in SAPI modules
- Deprecated Functionality
- Changed Functions
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="/static/js/analytics.js"></script> | |
<script type="text/javascript">archive_analytics.values.server_name="wwwb-app14.us.archive.org";archive_analytics.values.server_ms=158;</script> | |
<link type="text/css" rel="stylesheet" href="/static/css/banner-styles.css"/> | |
Array functions: | |
array_search $needle, $haystack | |
in_array $needle, $haystack | |
String functions: | |
strchr $haystack, $needle | |
stripos $haystack, $needle | |
stristr $haystack, $needle | |
strpos $haystack, $needle | |
strrchr $haystack, $needle |
<refsect1 role="description"> | |
&reftitle.description; | |
<methodsynopsis> | |
<type>mixed</type><methodname>gettimeofday</methodname> | |
<methodparam choice="opt"><type>bool</type><parameter>return_float</parameter><initializer>false</initializer></methodparam> | |
</methodsynopsis> |
<?php | |
$apiBase = 'http://api.microsofttranslator.com/V2/Http.svc'; | |
$appId = 'yourappid'; | |
$text = 'Een hoge boom vangt veel wind'; | |
$streamContext = stream_context_create(array('http' => array( | |
'method' => 'POST', | |
'content' => '', | |
'header' => implode("\r\n", array('Content-Type: text/xml', 'Content-Length: 0')), |
/** | |
* {@inheritdoc} | |
* | |
* @note Image dimensions returned as array(width, height) | |
*/ | |
public function fetchMetaDataFrom($filePath) | |
{ | |
if (!file_exists($filePath)) | |
throw new MetaDataFileNotFoundException(sprintf("File %s could not be found for metadata retrieval", $filePath)); |
<?php | |
function ☃() { var_dump(__FUNCTION__); } | |
☃(); |
# available in /etc/nginx/nginx.conf | |
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
} |
root@php1box:/tmp/php# ./phpf.cgi | |
Content-type: text/html | |
<html><head><title>PHPF Usage</title></head><body> | |
<center><h1>PHPF Usage</h1></center> | |
Call <i>phpf.cgi</i> with a url like <tt>http://host@domain/~user/phpf.cgi?arg</tt> where arg is one of:<br> | |
<pre> <tt>form+dest_url</tt></pre> | |
</body></html> |
<?php | |
namespace Seedstream; | |
use React\EventLoop\LoopInterface, | |
React\Socket\ConnectionInterface; | |
class Pusher | |
{ | |
private $loop; |