Ask a Question related to PHP Development, Design and Development.
-
Grzegorz R #1
viarable converting...
How I can convert variable $one="index.html" into variable
$two="indexhtml" or $two="index" something without point or only te first
word . The varabile is a string.
Grzegorz R Guest
-
Converting into PDF bug...
I am trying to convert a file into PDF (a 20 page one) and I keep getting an error message: "unable to convert file" at the end. It seems to be... -
Help with xs: converting I32 to int ?
Hi. <xs newbie warning=on> Compiling my Math-WalshTransform-1.11 on a Fedora5 with gcc 4.1.0 gives me (amongst other stuff which I can fix): In... -
Converting .PDF into CF
Is there a way using Coldfusion MX to convert a .PDF into a web page? I know with the new CF7, there is a cfdocument tag, but I only have CF6. -
Converting From PHP
I'm converting a site from PHP to ColdFusion and need to find a compatible feature as __LINE__ magic variable in php to report the line number... -
Converting to PDF
How do you install Acrobat distiller printer? It does not appear in my printers in XP. Can you give me the EASIEST steps to set up my computer to... -
Harrie Verveer #2
Re: viarable converting...
There are s lot of ways to do so. Here are a few:
$one = "index.html";
$two = explode(".","index.html");
echo ($two[0]); // "index"
echo ($two[1]); // "html"
--------------------------------------- OR
$one = "index.html";
$two = str_replace(".","",$one);
echo $two; // "indexhtml"
--------------------------------------- OR
$one = "index.html";
$pos = strpos($one,".");
$two = substr($one,0,$pos);
$three = substr($one,$pos+1);
and I'm sure there are a lot of other ways :)
Good Luck!
Harrie
Grzegorz R wrote:> How I can convert variable $one="index.html" into variable
> $two="indexhtml" or $two="index" something without point or only te first
> word . The varabile is a string.
>
>Harrie Verveer Guest



Reply With Quote

