Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Loads all data into the results object (initialisation)
*
* @param \Elastica\Response $response Response object
*/
protected function _init(Response $response)
{
$this->_response = $response;
<?php
/**
* folder relative-folder
* folder revision url
* folder url
* url folder
* url revision folder
* revision url folder
* url@revision folder
<?php
function createFoo()
{
$pdo = new PDO(/*...*/);
$maxTryCount = 3;
$tryCount = 0;
create_foo_start:
try {
@hoffigk
hoffigk / convertArrayToDotNotatedKeyPathArray.php
Last active January 8, 2016 16:10
Converts array keys to dot notated key path
<?php
class ArrayUtils
{
/**
* Konvertiert einen Array so um, das die Schlüssel als Pfad (punkt notiert)
* umgewandelt werden.
*
* <code>