Tagged Questions
2
votes
0answers
94 views
Adding values to an array works in script but not in function
I am trying to create an array in php to send to a function that I can use to receive user information.
The issue I am having is that the array is "duplicating" its values. This is a very basic ...
2
votes
0answers
173 views
Aptana 3 and PHP 5.4 new array format
There is anyway to do that Aptana don't mark like errors syntax the new array shorthand?
i found this ticket, for one year ago, and still is open
...
2
votes
0answers
106 views
PHP SOAP Complex Array Handing
Seems PHP does not handle complex array properly. Using PHP 5.
WSDL
<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:CostQueryServicewsdl" ...
2
votes
0answers
96 views
Display tagged items in lists sorted by tags
I have tasks that have tags in this format:
Array
(
[0] => stdClass Object
(
[task_id] => 10,
[task_text] => Mow and fertilize,
[tags] => Array
...
2
votes
0answers
988 views
PHP WSDL NuSoap ComplexType array of itself
This is what I want to do:
// Pull in the NuSOAP code
require_once('nusoap.php');
// Create the server instance
$server = new soap_server();
// Initialize WSDL support
...
2
votes
0answers
141 views
array_merge & strtr() doesn't work
Hi I have a problem with strtr().
I am creating a website where users can add their emoticons, and call them inside their posts by typing in the specialcode for an emoticon.
This is what I have done ...
2
votes
0answers
200 views
Consuming PHP webservice with .Net C#, error with array
I've a problem calling a PHP Web Service from .Net application.
This is the XML response and I think there is a problem with the return node
<?xml version="1.0" encoding="ISO-8859-1"?>
...
1
vote
0answers
44 views
Using a generated list of options to refine PHP/MySQL search
I want to user a generated list of links to refine a search.
I have a database of products (panel meters), each row with a unique model number and information about that model. I've created a search ...
1
vote
0answers
60 views
PHP - Multiple delimiter implode
I want to implode a string with multiple delimiters. I've already eplode it with this PHP function:
function multiexplode ($delimiters,$string) {
$ready = str_replace($delimiters, $delimiters[0], ...
1
vote
0answers
40 views
How totake all values from function?
Have a problem with my array:
function commentsToTemplate( $comment )
{
ob_start();
include 'comment.template.php';
$comments_string = ob_get_contents();
ob_end_clean();
...
1
vote
0answers
53 views
Is it possible to pass array index names inside function
I have small function which creates html output according to my $schema array structure.
Is it possible to have same output with my new array structure? (Is it possible to pass index names of arrays ...
1
vote
0answers
25 views
parsing csv issue getting two arrays
I have this csv file:
id,...MANY FIELDS,Gold
,020-008,20008,...MANY FIELDS...,34.5,21.49
for some reason im receiving the last element as two arrays:
....
[24] => 2
)
Array
(
[0] ...
1
vote
0answers
47 views
How to highlight substring in respective columns in php
How to highlight '12' in id , '3' in code and 'a' in name in $line. Highlighting data in respective columns is posing problem. I am able to highlight only one column at a time. The code below is to ...
1
vote
0answers
56 views
Cannot pass array to PHP script using Ajax
I'm having a weird problem here and I can't seem to figure out why I can't pass one array to the PHP script using ajax, but I can pass another array without any problems.
Here's my ajax function:
...
1
vote
0answers
34 views
addor merge fields in array php
this is part of the code:
$toExport = array(
array('c.id_customer','"[quickid]"'),
array('c.firstname','"[name]"'),
array('c.lastname','"[lastname]"'),
...