I just want to know if what syntax/code should I use to put - in my data variable.
for example I have this data.
$lot_number_indi_scan = 'LO130315002LO130318001';
I want to create a new variable and the output has added - between the lot_number_indi_scan like this:
$newlot = 'LO130315002-LO130318001';
I want to happen is first I will check the length of $lot_number_indi_scan if length is greater than 10 every lot_number_indi_scan has -
like this:
$newlot = 'LO130315002-LO130318001';
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks