php - how to save variable as array into database -


how can save array database string

 col1 |  col2 ------------------- 1    | array(1,2) ------------------- 2    | array(6,9) 

all value in array related together

use serialize() , unserialize()

http://php.net/manual/en/function.serialize.php

http://php.net/manual/en/function.unserialize.php

your data this: a:2:{i:0;i:1;i:1;i:2;}


Comments

  1. @admin
    is their any code to add menu in the website and java script is important for this process.
    Regards,
    Deepika Verma

    ReplyDelete

Post a Comment

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -