Hi all,
Can anyone tell me a little about the datatype FILE, which represents stream. What does its structure look like, and in which header file is it defined and so on...
Ex :
FILE *fp ;
fp = fopen("filename", "w") ; (6 Replies)
Hye all,
I would like some help with reading in a file in which the data is seperated by commas. for instance:
input.dat:
1,2,34,/test
for the above case, the fn. will store the values into an array -> data as follows:
data = 1
data = 2
data = 34
data = /test
I am trying to write... (5 Replies)
Since i'm new to scripting i'm findind it difficult to code a script. The script has to be an executable with 2 paramters passed to it.The Parameters are
1. The Control file name(.ctl file)
2. The Data file name(.csv file)
Does anybody have an idea about it? :confused: (3 Replies)
hi all
need your help.
I am wrting a script that will load data into the table.
then on another load will append the data into the existing table.
Regards
Ankit (1 Reply)
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
Hi all,
I have a data like,
0,R001,2,D
this wants to be loaded into a oracle database table.
Pl let me know how this has to be done.
Thanks in advance (2 Replies)
Hi all,
I need to know how to copy data from a table say ABC to a flat file say XYZ.dat in unix,
Please leave ur comments and the fastest way to do so,
I need to load the table records into flat file.
Regards
Ann (4 Replies)
I am seeking help on this UNIX function, please help. Thanks in advance.
I have a large file, named as 'MyFile'. It was tab-delmited, I am told that each record in column 1 is unique. How would I verify this with UNIX function or command? (1 Reply)
I have a flat file with records like
Header
123 James Williams Finance2000
124 Pete Pete HR 1500
125 PatrickHeather Engg 3000
Footer
The structure is:
Eno:4 characters
Name:8 characters
Surname : 9 characters
Dept:7 characters
Sal:4characters
These are sample... (1 Reply)
Discussion started by: Shivdatta
1 Replies
LEARN ABOUT PHP
array_replace
ARRAY_REPLACE(3) 1 ARRAY_REPLACE(3)array_replace - Replaces elements from passed arrays into the first arraySYNOPSIS
array array_replace (array $array1, array $array2, [array $...])
DESCRIPTION array_replace(3) replaces the values of $array1 with values having the same keys in each of the following arrays. If a key from the first
array exists in the second array, its value will be replaced by the value from the second array. If the key exists in the second array, and
not the first, it will be created in the first array. If a key only exists in the first array, it will be left as is. If several arrays are
passed for replacement, they will be processed in order, the later arrays overwriting the previous values.
array_replace(3) is not recursive : it will replace values in the first array by whatever type is in the second array.
PARAMETERS
o $array1
- The array in which elements are replaced.
o $array2
- The array from which elements will be extracted.
o $...
- More arrays from which elements will be extracted. Values from later arrays overwrite the previous values.
RETURN VALUES
Returns an array, or NULL if an error occurs.
EXAMPLES
Example #1
array_replace(3) example
<?php
$base = array("orange", "banana", "apple", "raspberry");
$replacements = array(0 => "pineapple", 4 => "cherry");
$replacements2 = array(0 => "grape");
$basket = array_replace($base, $replacements, $replacements2);
print_r($basket);
?>
The above example will output:
Array
(
[0] => grape
[1] => banana
[2] => apple
[3] => raspberry
[4] => cherry
)
SEE ALSO array_replace_recursive(3), array_merge(3).
PHP Documentation Group ARRAY_REPLACE(3)