Skip to main content
added 49 characters in body
Source Link

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

EDIT: Sorry for last error, i edit now...

The above code returns a URL like:

http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

The above code returns a URL like:

http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

EDIT: Sorry for last error, i edit now...

The above code returns a URL like:

http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.
code format example.com link
Source Link
Stephen Ostermiller
  • 99.4k
  • 18
  • 141
  • 364

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

The above code returns a URL like: http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.

http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

The above code returns a URL like: http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

The above code returns a URL like:

http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.
Source Link

First sorry about my bad english. I use this in my PHP apps links:

<?php $theURL = "http://example.com/files/528/Rabba Ho - Falak Shabir Song.html"; ?>

<a href="<?= str_replace( " ", "_", $theURL ); ?>" target="_blank">
    Rabba Ho - Falak Shabir Song
</a>

The above code returns a URL like: http://example.com/files/528/Rabba_Ho_-_Falak_Shabir_Song.html.