Hi
I am facing a problem in my project, I am trying to extract data from a stock website using a PHP code and then store the PHP array output of this code in an object oriented local database it’s name is Amos, but the problem is that Amos database doesn’t support to store directly a PHP array in it because it’s based on C tuples it means that I need to find a way to convert the PHP array into C tuples and then store it in the Amos local database.

So would you please to help me in this? If you can give me a way to do this? If you have a code that I can use it to implement this?

Thank you very much and I am looking to hear from you soon

    Hi,

    I have NO CLUE what you mean with C tuples. However, if you can store a string, you could [man]serialize[/man] the array to create a string, and [man]unserialize[/man] after extracting.

      Which site exactly are you trying to take content from. Sounds like you are up to no good.

        well i found this:

        Construction and Initialization
        A tuple type is a specialization, or an instance, of the class template tuple. The current library supports tuples with 0-10 elements. Each element may have a different type. In the following example, t is defined as a tuple type that contains two elements of type int and double:

        #include <tuple>
        tuple <int, double> t(1, 3.14);

        For the sake of brevity, I do not use qualified names. The actual namespace in which tuple and its helper functions are declared depends on the library you're using. The Boost library declares them in boost::tuples. Standard C++ will declare them in std, as usual.

        If you omit the initializers, default initialization will apply instead:

        tuple <std::string, int*> u; //initialized to: string(),0

        here

          kgh78 referred to "C tuples", not "C++ tuples".

            I want to see this database that uses C as its DML language. I'm starting to guess that it's an embedded thing and that the poster is wanting to write a PHP extension that interfaces with it.

              Write a Reply...