[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
 

Re: php variablen printer ikke



On Sat, 28 Aug 2010 14:50:52 +0000, Olof wrote:

> Ah, naturligtvis. Har dålig koll på PHP, och antog att det uppförde sig 
> som andra språk vad det gäller scoping. Men du har såklart rätt.

Du mener som Python, Ruby eller Perl5?

  $ python
  Python 2.6.6 (r266:84292, Aug 27 2010, 19:38:21) 
  [GCC 4.4.5 20100816 (prerelease)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> if (1):
  ...     a="Hej"
  ... 
  >>> print a
  Hej
  >>> 
  $  ruby
  if 1
          a="Hej"
  end
  print "#{a}\n"
  Hej
  $ $ perl -M5.10.0
  if (1) {
      $a="Hej" 
  }
  say $a
  Hej
  $ 


  Mvh.

   Adam

-- 
 "Angels can fly because they take themselves lightly."       Adam Sjøgren
                                                         sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-09-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] *