FDF_GET_VALUE(3) 1 FDF_GET_VALUE(3)fdf_get_value - Get the value of a fieldSYNOPSIS
mixed fdf_get_value (resource $fdf_document, string $fieldname, [int $which = -1])
DESCRIPTION
Gets the value for the requested field.
PARAMETERS
o $fdf_document
- The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3).
o $fieldname
- Name of the FDF field, as a string.
o $which
- Elements of an array field can be retrieved by passing this optional parameter, starting at zero. For non-array fields, this
parameter will be ignored.
RETURN VALUES
Returns the field value.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 4.3.0 | |
| | |
| | Support for arrays and the $which parameter were |
| | added. |
| | |
+--------+---------------------------------------------------+
SEE ALSO fdf_set_value(3).
PHP Documentation Group FDF_GET_VALUE(3)
Check Out this Related Man Page
FDF_SET_VALUE(3) 1 FDF_SET_VALUE(3)fdf_set_value - Set the value of a fieldSYNOPSIS
bool fdf_set_value (resource $fdf_document, string $fieldname, mixed $value, [int $isName])
DESCRIPTION
Sets the $value for the given field.
PARAMETERS
o $fdf_document
- The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3).
o $fieldname
- Name of the FDF field, as a string.
o $value
- This parameter will be stored as a string unless it is an array. In this case all array elements will be stored as a value
array.
o $isName
-
Note
In older versions of the FDF toolkit last parameter determined if the field value was to be converted to a PDF Name (= 1) or
set to a PDF String (= 0).
The value is no longer used in the current toolkit version 5.0. For compatibility reasons it is still supported as an
optional parameter beginning with PHP 4.3, but ignored internally.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 4.3.0 | |
| | |
| | Support for arrays in the $value parameter was |
| | added. |
| | |
+--------+---------------------------------------------------+
SEE ALSO fdf_get_value(3), fdf_remove_item(3).
PHP Documentation Group FDF_SET_VALUE(3)
I have got a file BeforeSort.txt having 40 fields seperated by "|"
First field= RecordType (Value will be P or FP)
Second field= CamCode
Third field = UpdatingDate
Fourth field = ProductType
Fifth field = ActionCode (Value may be 01, 02 or 03)
Sixth field = ProductCode
and so on
My... (1 Reply)
I need to pass a parameter to a function in a script. My parameter is a string. When I display the parameter within my function, I only get the first word from string I pass in.
How can I make the function receive the whole string (and not terminate at the first space it encounters)?.
part of... (2 Replies)
Hi,
Is it possible to use a variable as a fieldname parameter for the cut command. I am trying to extract fields from a variable. Say that I want to cut the fields 1,3,5,7,9, etc, but I don't know how many fields that the variable will have i.e. could be 100 or more. I thought that I could use... (3 Replies)
Hi, can anyone help me? This is what i want to do....I have a string
UNB+UNOA:1+OOCLIES+RTTC+080408:0358+1'
and i want to replace the "1" at the end (that specific field only) to 00001 such that the new output will be like this
UNB+UNOA:1+OOCLIES+RTTC+080408:0358+00001'
i tried using... (5 Replies)
Hi All :),
I am very new to unix. I am requiring ur help in developing shell script for below problem.
I have to replace the second field of file with values of array sequentially where first field is ValidateKeepVar
<File>
UT-ExtractField 1 | &LogEntry &Keep(DatatoValidate)... (3 Replies)
Hi,
I am trying to copy one field to another only on lines that match a certain string. Here is what i have tried:
awk '/nch/' {gsub($3,$5,$0)}' file
I need to copy $5 (field) to $3 if the line contains "nch"
I have never used gsub and am not sure if this is the right way.
file:... (2 Replies)
attempting the hangman program. This was an optional assignment from the professor. I have completed the logical coding, debugging now.
##I have an array $wordString that initializes to a string of dashes
##reflecting the number of letters in $theWord
##every time the user enters a (valid)... (5 Replies)
I have numerous (hundreds) of data files with various values in each file. The values are 1 per line, and identified by the fieldname in the 1st field in the line, which is delimited from the actual field value by a colon. So an example from one of the files looks like this:
NAME: Bob Jones... (2 Replies)
Hi ,
i have file which is having two fields in it (#delimited)
ABC#FILE_01.DAT
DEF#FILE_02.DAT
i want to write first field values to one array example A_01 and second field values to B_02 array
please let me know how to do this ,my final requirement i have send out a mail for each record... (2 Replies)
I have a need to print nth field based on the parameter passed. Suppose I have 3 fields in a file, passing 1 to the function should print 1st field and so on.
I have attempted below function but this throws an error due to incorrect awk syntax.
function calcmaxlen
{
FIELDMAXLEN=0
... (5 Replies)
I have 2 files , i need compare both files field by field, and in the fourth field some value will be interchaged and some value will be **.
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2 john|0.0|4|JP:50;**:25;UY:25 (4 Replies)