encode Php array to json -


मैं अपने php array को एन्कोड करना चाहता हूँ

  Array ([0] = & gt; Laravel   

एक json सरणी जो ऐसा दिखता है

  {"val": [1] = & gt; हेलो) <"<" <">" "" "" "" "" "" "" Itemprop = "text"> 

इसे आज़माएं:

  $ array = array ("val" = & gt; $ your_array); $ Json_str = json_encode ($ सरणी);   

रेफ़री:

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -