Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 03.08.06 10:26 
Wenn ich eine echo-Anweisung mit einem " einleite, wie kann ich dann innerhalb dieses Strings ein " einfügen?
Per PHP soll Javascript-Code generiert werden, in denen Funktionen vorkommen, die als Parameter Strings erwarten, welche mit "" umschlossen werden. Diese Parameter müssen aber auch '' enthalten.
z.B. soll ausgegeben werden:
GibNameAus ("Horst 'Kuchta'")

Wie lautet die echo-Anweisung dafür?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
wunsiedler
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Do 03.08.06 14:00 
So:

ausblenden Quelltext
1:
2:
3:
<?php
echo "Hallo \"Horst Kuchta\"";
?>
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 03.08.06 14:01 
Danke, es funktioniert :zustimm:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot