wcf.regNote.message

) und da steht, dass, wenn man echo mit einfachen anführungszeichen macht (was ich getan habe), PHP nur die Variablennamen ausgibt...This post has been edited 1 times, last edit by "Deathdragon" (Oct 13th 2007, 10:23am)
|
|
PHP Source code |
1 2 3 |
$sucharray = array("ä","ö","ü","Ä","Ö","Ü");
$ersatzarray = array("ä","ö","ü","Ä","Ö","Ü");
$meinevar = str_replace($sucharray,$ersatzarray,$meinevar);
|
danke.|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?php echo" $frage1[COLOR=$farbe]$antwort1[/COLOR] <br> \n $frage2[COLOR=$farbe]$antwort2[/COLOR] <br> \n $frage3[COLOR=$farbe]$antwort3[/COLOR] <br> \n $frage4[COLOR=$farbe]$antwort4[/COLOR] <br> \n $frage5[COLOR=$farbe]$antwort5[/COLOR] <br> \n ... ... ... $frage441[COLOR=$farbe]$antwort441[/COLOR] <br> \n $frage442[COLOR=$farbe]$antwort442[/COLOR] <br> \n $frage443[COLOR=$farbe]$antwort443[/COLOR] <br> \n $frage444[COLOR=$farbe]$antwort444[/COLOR] <br> \n $frage445[COLOR=$farbe]$antwort445[/COLOR] <br> \n ";#endeecho ?> |
This post has been edited 2 times, last edit by "Deathdragon" (Oct 14th 2007, 8:48pm)
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
$frage = array($frage1, $frage2...);
$antwort = array($antwort1...);
foreach ($frage as $i => $Frage){
//Ausgabe mit COLOR
echo $Frage ,'[COLOR=', $farbe, ']', $antwort[$i], '[/COLOR] <br>';
//oder Ausgabe mit span
echo $Frage ,'<span style="color:'.$farbe.';">', $antwort[$i], '</span> <br>';
echo "\n";
}
|
This post has been edited 5 times, last edit by "Lord Potter" (Oct 15th 2007, 12:20pm)
|
|
PHP Source code |
1 2 3 |
echo $Variable;
echo $Variable1, " ", $Variable2...;
//Das ist dasselbe wie echo "$Variable1 $Variable2;
|
ich melde mich wieder wenn ichs fertig hab 
) mit nem \ davor aus, was natürlich stört.This post has been edited 1 times, last edit by "Deathdragon" (Oct 15th 2007, 8:33pm)
|
|
PHP Source code |
1 2 |
$str = "Ich bestehe aus \' und \" ...";
$str = stripslashes ($str);
|
Quoted
Original von Deathdragon
aber jetzt noch eine frage: kann mir jemand sagen mit welchem/er TAG/funktion ich den inhalt von variablen "ausgabekonform" (ausgabe von ä, ö, ü als code) machen kann?
|
|
Source code |
1 2 3 4 |
ä = ä ö = ö ü = ü ß = ß |
|
|
Source code |
1 2 3 4 5 6 |
ü = \u00fc ä = \u00e4 ö = \u00f6 ß = \u00df "H\u00E4lf mir." = Hälf mir. |
|
|
Source code |
1 |
admin\u0040hackthenet\u002ebe = admin@hackthenet.be |
This post has been edited 3 times, last edit by "ruepel1969" (Nov 20th 2007, 2:24am)