How to Remove all Question Mark From String Using PHP?

Hello friends, today I will tell you through this tutorial how you can easily remove all the question marks from your string content. This tutorial will try to understand you step to step. So let’s go.

extract question mark from string by php, remove question mark (?) from string content with php code, easy remove all question mark from variable string value using php

preg_replace :- With this function you can add any symbol to the value of your variable. You can also remove any symbol. How we will remove the question mark by this function is explained to you by example below. By copying this code, you can see it very easily by running in your server.

remove-question-mark.php

<?php 
$d = "my name is Experts PHP ? of the ?";
echo preg_replace('/[-?]/', '', $d);
?>