Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Dlaczego źle mi wyświetla
lukaszzgz
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 28.12.2020

Ostrzeżenie: (0%)
-----


  1. <?php
  2. $zmienna = 30;
  3. echo( 'Zmienna ma wartość'. $zmienna .' i jest typu'. var_dump( $zmienna ) );
  4. ?>
  5.  

Dlaczego nie wyświetla mi prawidłowo tego zapytania tylko jako wynik dostaje int(30) Zmienna ma wartość30 i jest typu
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
viking
post
Post #2





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


https://www.php.net/manual/en/function.gettype.php ?
Go to the top of the page
+Quote Post
lukaszzgz
post
Post #3





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 28.12.2020

Ostrzeżenie: (0%)
-----


a jak zrobić żeby var_dump było na końcu ?
Go to the top of the page
+Quote Post
viking
post
Post #4





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


https://www.php.net/manual/en/function.var-dump.php

Tip

As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the output of this function, and save it in a string (for example).

Ten post edytował viking 28.12.2020, 13:26:02
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 23:41