php string replace space

60

php string replace space -

$journalName = preg_replace('/\s+/', '_', $journalName);

replace _ with space php -

$journalName = str_replace(' ', '_', $journalName);

replace _ with space php -

$journalName = preg_replace('/\s+/', '_', $journalName);

Comments

Submit
0 Comments