Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

replace last two characters string php

$start_time = '1030';
$pattern    = '/(?<=dd)30/';
$start_time = preg_replace($pattern, '50', $start_time);

//result: 1050
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #characters #string #php
ADD COMMENT
Topic
Name
9+9 =