Foros del Web » Programando para Internet » PHP »

Duda en php

Estas en el tema de Duda en php en el foro de PHP en Foros del Web. Hola, la tengo una duda ahora que tengo que consumir un servicio web la duda es: como declaro una variable con contenido el cual puede ...
  #1 (permalink)  
Antiguo 23/11/2007, 06:30
 
Fecha de Ingreso: septiembre-2007
Mensajes: 11
Antigüedad: 16 años, 7 meses
Puntos: 0
Duda en php

Hola, la tengo una duda ahora que tengo que consumir un servicio web la duda es:

como declaro una variable con contenido el cual puede llevar mas comillas sin que de error.

del tipo un parrafo que tb lleve otro tipo de simbolos:

Código:
The Red Barn Murder was a notorious murder committed in Suffolk, England in 1827. A young woman, Maria Marten, was shot dead by her lover, William Corder, the son of the local squire. The two had arranged to meet at the Red Barn, a local landmark, before eloping to Ipswich in order to be married. Maria was never heard from again. Corder fled the scene and although he sent Marten's family letters claiming she was in good health, her body was later discovered buried in the barn after her stepmother claimed to have dreamt about the murder. Corder was tracked down in London, where he had married and started a new life. He was brought back to Suffolk, and, after a well-publicised trial, found guilty of murder. He was hanged in Bury St. Edmunds in 1828; the execution was watched by a huge crowd. The story provoked numerous articles in the newspapers, and songs and plays. The village where the crime had taken place became a tourist attraction and the barn was stripped by souvenir hunters. The plays and ballads remained popular throughout the next century and continue to be performed today. (more...)
eso meterlo en una varibale en php como seria????

gracias.
  #2 (permalink)  
Antiguo 23/11/2007, 06:31
 
Fecha de Ingreso: septiembre-2007
Mensajes: 11
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Duda en php

es que habia algo de poner el operador <<< o algo parecido pero no me acuerdo como era

gracias de antemano
  #3 (permalink)  
Antiguo 23/11/2007, 08:25
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Re: Duda en php

Lo que estás buscando es la sintaxis Heredoc para cadenas.


Saludos
  #4 (permalink)  
Antiguo 23/11/2007, 08:50
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: Duda en php

Tema trasladado a PHP General

Porfavor publica en los foros correctos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:55.