Simulate php array language construct or parse with regexp?

后端 未结 3 615
[愿得一人]
[愿得一人] 2020-12-01 20:03

From an external source I\'m getting strings like

array(1,2,3)

but also a larger arrays like

array(\"a\", \"b\", \"c\", ar         


        
3条回答
  •  北海茫月
    2020-12-01 20:48

    I think you should use the Tokenizer for this. Maybe I will write a script lateron, that actually does it.

提交回复
热议问题