Project

General

Profile

$ini » History » Version 1

Per Amundsen, 08/12/2015 07:25 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$ini(file,topic|N,[item|N])*
4
5
Returns the name/Nth position of the specified topic/item in an ini/text file.
6
7
*Parameters*
8
9
file - File to read from.
10
topic|N - Topic or the Nth topic, if N = 0 number of topics, otherwise the Nth topic.
11
[item|N] - Item or the Nth item, if N = 0 number of item, otherwise the Nth item. (optional)
12
13
*Examples*
14
15
<pre>
16
; Print number of topics in '$adiircini'.
17
//echo -ag $ini($adiircini,0)
18
19
; Print the name of the first topic in '$adiircini.
20
//echo -ag $ini($adiircini,1)
21
22
; Check if the topic 'Messages' exists.
23
//echo -ag $ini($adiirc,Messages)
24
</pre>