Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11

    Quote Originally Posted by Sorry View Post
    master, what is serialize?
    i googled it pero lisod kaau sabton dah..
    hehe
    serialize - Generates a storable representation of a value.

    usually this is used when storing ARRAY on the database

    HTML
    PHP Code:
    <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
    <input type="text" name="test[]" value="test1" />
    <input type="text" name="test[]" value="test2" />
    <input type="text" name="test[]" value="test3" />
    <input type="submit" value="Submit"/>
    </form>
    Source Code
    PHP Code:
    <?php
    print_r
    ($_REQUEST['test']);

    echo 
    serialize($_REQUEST['test']);
    ?>
    Output
    HTML Code:
    Array ( [0] => test1 [1] => test2 [2] => test3 )
    
    a:3:{i:0;s:5:"test1";i:1;s:5:"test2";i:2;s:5:"test3";}
    and if you want to read the value again... use the unserialize
    Last edited by salbahis; 10-05-2010 at 01:09 PM.

  2. #12
    ahhh..
    related japon sa array master sah?
    parehag mag gamit ug session sah?
    di bah imong data kay ma store man into array?

  3.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Im learning PHP, Help me hw to run the PHP!
    By kyme in forum Programming
    Replies: 23
    Last Post: 08-21-2012, 02:57 AM
  2. Replies: 33
    Last Post: 10-17-2008, 04:09 PM
  3. Help with PHP Login Stuff
    By poymode in forum Programming
    Replies: 36
    Last Post: 06-20-2008, 07:57 AM
  4. PHP help me
    By poymode in forum Programming
    Replies: 8
    Last Post: 07-28-2007, 02:57 PM
  5. PHP help
    By tjyrna in forum Networking & Internet
    Replies: 1
    Last Post: 07-06-2006, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top