Parsing javascript arrays in PHP

前端 未结 4 2020
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 05:47

I can\'t seem to figure out how to get a JS array into PHP.

What I have to work with looks like this:

var arrLow = [
{
\"e\": \"495864\",
\"rank\": \         


        
4条回答
  •  盖世英雄少女心
    2021-01-05 06:17

    2 options:

    1. Just remove the var arrLow = at the front (might need a regex if its variable), and parse as json.
    2. Go for full on javascript parsing

提交回复
热议问题