Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Resolve issue where we only get the first character of the label/value #486

Closed
wants to merge 1 commit into from

Conversation

mustardBees
Copy link
Contributor

Inconsistent behaviour between PHP versions, see http://stackoverflow.com/a/9132759/2927691.

$option = 'Boom';
$opt_label = isset( $option['name'] ) ? $option['name'] : $option;
print_r( $opt_label ); // "B" on PHP 5.3, "Boom" on PHP 5.4

Inconsistent behaviour between PHP versions, see http://stackoverflow.com/a/9132759/2927691.

```php
$option = 'Boom';
$opt_label = isset( $option['name'] ) ? $option['name'] : $option;
print_r( $opt_label ); // "B" on PHP 5.3, "Boom" on PHP 5.4
```
@jmau111
Copy link
Contributor

jmau111 commented Mar 26, 2014

it works thanks !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants