Convert string to array in template
How would I convert this string to an array within a template?
{{ $records.connectionString }} which equals "0:0:991:1000 0:1:235:1"
I'd like to convert the string above to an array (which is broken up by " " and ":", then loop through it and only output the third value 991 and 235 on their own lines.
EX:
991
235
Also note: Apologies if this is in the wrong section.
🔴🔔⚠️⚠️⚠️🔔🔴
☑️Lütfen okumaya devam etmek için giriş yapın veya üye olun.🤝☑️
☑️Please login or register to continue reading.🤝☑️
🔴🔔⚠️⚠️⚠️🔔🔴
How would I convert this string to an array within a template?
{{ $records.connectionString }} which equals "0:0:991:1000 0:1:235:1"
I'd like to convert the string above to an array (which is broken up by " " and ":", then loop through it and only output the third value 991 and 235 on their own lines.
EX:
991
235
Also note: Apologies if this is in the wrong section.
🔴🔔⚠️⚠️⚠️🔔🔴
☑️Lütfen okumaya devam etmek için giriş yapın veya üye olun.🤝☑️
☑️Please login or register to continue reading.🤝☑️
🔴🔔⚠️⚠️⚠️🔔🔴
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.