Skip to content
Advertisement

Getting a substr of a {{ var }} in php

I am populating a HTML table:

JavaScript

This yields: 61 event 40012345 substr( 40012345, 0, 24) 60 event 4001234 substr( event has a very long description. The list should show a 25 char substring., 0, 24)

Thanks…Dan’l

Advertisement

Answer

Reorganize your html/php:

JavaScript

You can also use Laravel Helpers for string related variables. Read docs here.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement