belajar pemrograman php

Discussion in 'Desain Web dan Programming' started by irman, 28 Nov 2010.

Thread Status:
Not open for further replies.
  1. irman

    irman New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Saya mau tanya kalo di VB untuk mengetahui nilai variable yg kita buat dgn perintah msg (nilai variable) gunanya untuk memudahkan kita menangani kesalahan code. pertanyaannya adalah klo di php menggunakan apa???
     
  2. vkios01

    vkios01 Expert 1.0

    Messages:
    749
    Likes Received:
    18
    Trophy Points:
    18
    apa mungkin ?
    PHP:
    if($variable)
    jadi kalau $variable kosong, maka jalanin fungsi/error handle dibawahnya..
    CMIIW
     
    Last edited: 29 Nov 2010
  3. dpnux

    dpnux Expert 1.0

    Messages:
    455
    Likes Received:
    28
    Trophy Points:
    28
    PHP:
    <?php
    $variable 
    'Ini variable dengan tipe data string';

    echo 
    'Ini adalah isi dari $variable : '.$variable.' variable ini adalah '.gettype($variable);
     
  4. dpnux

    dpnux Expert 1.0

    Messages:
    455
    Likes Received:
    28
    Trophy Points:
    28
    daripada lupak, mendingan tambahin

    PHP:
    echo $data 'Test variable';
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...