2017 © Pedro Peláez
 

library key_implode

Implode PHP array by both key and value

image

nathggns/key_implode

Implode PHP array by both key and value

  • Wednesday, November 27, 2013
  • by nathggns
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,064 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

key-implode

Implode PHP array by both key and value, (*1)

Usage

string key_implode(string $pair_glue, string $glue, array $arr)

Given an associative array, key_implode() returns a string where both the keys and the values have been imploded by a specified glue., (*2)

key_implode(':', '/', [
    'page' => 2,
    'letter' => 'A'
]);

// page:2/letter:A

Installation

The easiest way to install this library is to use Composer and add the following to your project's composer.json., (*3)

{
    "require": {
        "nathggns/key_implode": "1.1.*"
    }
}

Then, when you run composer install, Composer should add this function to your project., (*4)

You do not need Composer to use this project, though. The alternative is to simply take the file src/key_implode.php and add it to your project., (*5)

The Versions

27/11 2013

dev-master

9999999-dev https://github.com/nathggns/key-implode

Implode PHP array by both key and value

  Sources   Download

MIT

array key implode assoc key_implode

27/11 2013

1.1.0

1.1.0.0 https://github.com/nathggns/key-implode

Implode PHP array by both key and value

  Sources   Download

MIT

array key implode assoc key_implode

27/11 2013

1.0.1

1.0.1.0 https://github.com/nathggns/key-implode

Implode PHP array by both key and value

  Sources   Download

MIT

array key implode assoc key_implode

27/11 2013

1.0

1.0.0.0 https://github.com/nathggns/key-implode

Implode PHP array by both key and value

  Sources   Download

MIT

array key implode assoc key_implode