dg / Php54 Arrays
Command-line script to convert between array() and PHP 5.4's short syntax []
Stars: ✭ 47
Labels
Projects that are alternatives of or similar to Php54 Arrays
Voc2coco
A useful script for converting voc format annotations(generated by LabelImg or Labelme) to coco format annotations
Stars: ✭ 16 (-65.96%)
Mutual labels: converter
Currencyviewer
Short python framework that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.
Stars: ✭ 13 (-72.34%)
Mutual labels: converter
Asciidoctor Pdf
📃 Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Stars: ✭ 868 (+1746.81%)
Mutual labels: converter
Ts To Goog
A tool that converts TypeScript definitions into Closure Compiler externs.
Stars: ✭ 20 (-57.45%)
Mutual labels: converter
Online Markdown
A online markdown converter specially for Wechat Public formatting.
Stars: ✭ 812 (+1627.66%)
Mutual labels: converter
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-4.26%)
Mutual labels: converter
Jsontocodable
A generating tool from Raw JSON to Codable (Swift4) text written in Swift4.
Stars: ✭ 33 (-29.79%)
Mutual labels: converter
Wasm2kt
Web Assembly to Kotlin and Java converter. Allows to compile a C or C++ program/library, and generate a Kotlin or Java program/library.
Stars: ✭ 18 (-61.7%)
Mutual labels: converter
Ssfconv
Sogou input method skin file (.ssf file) converter, supports conversion to fcitx or fcitx5 format.
Stars: ✭ 44 (-6.38%)
Mutual labels: converter
Osm2xmap
Converter from OpenStreetMap data format to OpenOrienteering Mapper format.
Stars: ✭ 5 (-89.36%)
Mutual labels: converter
Mxnet2caffe
convert model from mxnet to caffe without lossing precision
Stars: ✭ 20 (-57.45%)
Mutual labels: converter
Ost2pst
OST2PST - converts Outlook OST files to PST format
Stars: ✭ 46 (-2.13%)
Mutual labels: converter
PHP 5.4 Short Arrays Converter []
Command-line script to convert between array()
and PHP 5.4's short syntax []
(and vice versa).
It uses native PHP tokenizer, so conversion is safe. The script was successfully tested against thousands of PHP files.
Usage
To convert all *.php
and *.phpt
files in whole directory recursively or to convert a single file use:
php convert.php <directory | file>
To convert source code from STDIN and print the output to STDOUT use:
php convert.php < input.php > output.php
To convert short syntax []
to older long syntax array()
use option --reverse
:
php convert.php --reverse <directory | file>
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].