Re: [PHP] Converting string to array index

2011-11-05 Thread Bastien


On 2011-11-05, at 10:21 PM, Ethan Rosenberg  wrote:

> Dear list -
> 
> I have an associative array that will return a string representing an array 
> index.  I now need to convert this string into an actual array index.
> 
> $test1 = array
> (
> "e1" => "[4][7]",
> "e2" => "[5][8]"
> );
> 
> so.. $z = $test1['e1'];
> z has the value of [4][7].  I need to convert this string to an array index 
> so I can use it in $results[4][7].
> 
> How do I do it?
> 
> Thanks.
> 
> Ethan
> 
> MySQL 5.1  PHP 5.3.3-6  Linux [Debian squeeze(sid)]  
> 
> 
> -- 
> 

Array_flip()?

http://php.net/manual/en/function.array-flip.php


Bastien

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Converting string to array index

2011-11-05 Thread Ethan Rosenberg

Dear list -

I have an associative array that will return a string representing an 
array index.  I now need to convert this string into an actual array index.


$test1 = array
(
"e1" => "[4][7]",
"e2" => "[5][8]"
);

so.. $z = $test1['e1'];
z has the value of [4][7].  I need to convert this string to an array 
index so I can use it in $results[4][7].


How do I do it?

Thanks.

Ethan

MySQL 5.1  PHP 5.3.3-6  Linux [Debian squeeze(sid)]  




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Google Search Appliance and PHP

2011-11-05 Thread Negin Nickparsa
step 2:http://php.net/manual/en/book.xml.php

 try to know about Xml parser

On 11/3/11, Gates, Jeff  wrote:
> I am a newbie in PHP.
>
> I need to create a search using Google's Search Appliance for a site I'm
> designing but don't have the slightest idea on how to do it. Because I want
> to incorporate the site's design into the search results page I can't use
> the GSA's simple page layout wizard.
>
> Here's what I need to be able to learn how to do:
>
>
>  1.  Create a search form and send it to our GSA (this is pretty easy).
>  2.  Create a processing page to parse the XML
>  3.  Create a results page using the header and footer of my site.
>
> Can anyone help me with simple explanation on how to do steps 2 and 3?
>
> Thanks,
>
> Jeff
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php sqlite

2011-11-05 Thread saeed ahmed
i want to start with php sqlite.which  light weight versions should i
download?i have win xp sp3.