[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

SV: [PROGRAMMERING] Variabler med mindestreg eller punktiom i PHP



Hej Ricco

> -----Oprindelig meddelelse-----
> Fra: Ricco Jensen [mailto:sslug@sslug
> Sendt: 15. marts 2006 09:35
> Til: sslug@sslug
> Emne: Re: [PROGRAMMERING] Variabler med mindestreg eller punktiom i PHP
> 
> Nu har jeg ingen indflydelse på hvordan variablerne skal se ud, jeg kan
> sende dem ind på sitet men kan ikke hente dem ud.
> 
> De skal pisket se ud som her
> 
> $required1.Navn="fyld";
> 
Du kan gøre det som ${'required1.Navn'} = 'fyld';

Men det lyder altså underligt, at du har behov for det...

Mange hilsner

Lars
> MVH Ricco
> 
> 
> 
> 
> "Kim Schulz" <sslug@sslug> skrev i en meddelelse
> news:sslug@sslug
> On Tue, 14 Mar 2006 16:38:06 +0100
> "Ricco Jensen" <sslug@sslug> wrote:
> 
> > Jeg har et problem med at udlæse en variable i PHP hvis jeg bruger
> > punktum eller bindestreg.
> >
> > $required-navn="fyld";
> >
> > $required.navn="fyld";
> >
> > Jeg kan godt fylde noget i men ikke tage det ud igen.
> >
> > Da det er ud til at PHP ikke kan se mere efter punktum eller
> > bildestreg.
> >
> > Hvad gør man ?.
> 
> Det gør man ikke.
> 
> $required-navn svarer til at du tager variablen $required og trækker
> konstanten "navn" fra. Altså bindestreg læses som et minus.
> punktum bruges til at binde kommandoer sammen så der har du samme
> problem.
> Min anbefaling er at bruge camelBackNames, altså $requiredNavn eller
> underscore $required_navn
> 




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-04-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *