Php Replace Space With Underscore

[Solved] Php Replace Space With Underscore | Php - Code Explorer | yomemimo.com
Question : php replace space with underscore

Answered by : annoyed-alpaca-lxbc75g55bca

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

Source : https://stackoverflow.com/questions/6431051/replacing-spaces-with-underscores/6431076 | Last Update : Tue, 21 Jul 20

Question : php convert spaces to underscores

Answered by : atsu-emmanuel-terungwa

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

Source : | Last Update : Tue, 01 Sep 20

Answers related to php replace space with underscore

Code Explorer Popular Question For Php