Skip to main content
added 21 characters in body
Source Link
Nathan Osman
  • 23.3k
  • 11
  • 61
  • 107

Can't this easily be constructed by appending a '/' and the title from the question?

In PHP:

$question_url .= '/' . preg_replace('/[^\w][^\w_]/','',$questionstr_replace(' ','_'$question->title));

Can't this easily be constructed by appending a '/' and the title from the question?

In PHP:

$question_url .= '/' . preg_replace('/[^\w]/','',$question->title);

Can't this easily be constructed by appending a '/' and the title from the question?

In PHP:

$question_url .= '/' . preg_replace('/[^\w_]/','',str_replace(' ','_'$question->title));
Source Link
Nathan Osman
  • 23.3k
  • 11
  • 61
  • 107

Can't this easily be constructed by appending a '/' and the title from the question?

In PHP:

$question_url .= '/' . preg_replace('/[^\w]/','',$question->title);