Skip to content

Commit

Permalink
Short array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroadway authored Dec 8, 2018
1 parent 3887f73 commit 7811827
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ To extend the character list:
```php
<?php

URLify::add_chars (array (
URLify::add_chars ([
'¿' => '?', '®' => '(r)', '¼' => '1/4',
'½' => '1/2', '¾' => '3/4', '¶' => 'P'
));
]);

echo URLify::downcode ('¿ ® ¼ ¼ ¾ ¶');
// "? (r) 1/2 1/2 3/4 P"
Expand All @@ -72,7 +72,7 @@ To extend the list of words to remove:
```php
<?php

URLify::remove_words (array ('remove', 'these', 'too'));
URLify::remove_words (['remove', 'these', 'too']);
```

To prioritize a certain language map:
Expand Down

0 comments on commit 7811827

Please sign in to comment.