0

i have value from database column like this ["data string 1.xlsx","data string 2.xlsx"], how i can echo each element so i want get result like this:

  • data string 1.xlsx
  • data string 2.xlsx

Thanks

dubna48k
  • 1
  • 2
  • If you are asking to split comma separated string to rows, then refer this https://stackoverflow.com/a/17942691/5234334) – Utsav Jul 19 '22 at 03:37
  • Does this answer your question? [SQL split values to multiple rows](https://stackoverflow.com/questions/17942508/sql-split-values-to-multiple-rows) – Anand Sowmithiran Jul 19 '22 at 03:38
  • 3
    Looks like what you have there is actually JSON-encoded data, so [`json_decode`](https://www.php.net/manual/en/function.json-decode.php) would be your easy solution. – Greg Schmidt Jul 19 '22 at 04:02

0 Answers0