Jump to content

SUBSTR Question and truncating a variable


ipvrf

Recommended Posts

$to = $notifyemail;

$from = "[email protected]";

$subject  = "[ $rawticket ] Random $notifytype Notification";

 

Currently the output is an email with a total of 15 numbers,

i.e. SUBJECT:  [ 000000001718989 ] Random $notifytype Notification

 

I want to remove the 0's

 

Would something like this work or is this not possible?

 

"[ (substr($rawticket,9)) ] Random $notifytype Notification";

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.