Skip to content

Instantly share code, notes, and snippets.

View henryhu712's full-sized avatar

henryhu henryhu712

View GitHub Profile
@henryhu712
henryhu712 / array_from_javascript_to_php.md
Created April 14, 2016 10:43
Pass array from Javascript to PHP

JS:

JSON.stringify(myArr)

PHP

json_decode(str_replace('\', '', $_POST['var']));

@henryhu712
henryhu712 / span_with_width.md
Created April 30, 2016 06:28
CSS span width

Set span with width

display: inline-block;
width: ...px;