This topic is locked

Displaying last 5 characters of a string

1/25/2009 1:47:54 AM
PHPRunner General questions
R
robmid author

Hi All.
I'm trying to display the last 5 characters of a six character string on the List page
I have added:
$Vehicle_Registration = substr('$Vehicle_Registration',1);
to the 'Default' value in Edit Settings but there is no change to the display.
Am I on the wrong track?
Thanks.
Cheers,

Rob

R
robmid author 1/25/2009

I worked it out.
The tricky part about PHP Runner for me is that I don't expect the solution to be so easy.
Cheers,

Rob

M
mmhsymon 6/22/2009

I have similar problem. pls anyone help me in this issue.

Thankx in advance.

I worked it out.

The tricky part about PHP Runner for me is that I don't expect the solution to be so easy.
Cheers,

Rob

J
Jane 6/24/2009

Hi,
use custom format on the"View as" settingsdialog on theVisual Editortab.

Here is a sample:

$value = substr($value,1);