@@ -77,12 +77,11 @@ $fmt = datefmt_create(
77
77
IntlDateFormatter::GREGORIAN,
78
78
'MM/dd/yyyy'
79
79
);
80
- echo 'pattern of the formatter is : ' . datefmt_get_pattern($fmt);
81
- echo 'First Formatted output with pattern is ' . datefmt_format($fmt, 0);
82
- datefmt_set_pattern($fmt, 'yyyymmdd hh:mm:ss z');
83
- echo 'Now pattern of the formatter is : ' . datefmt_get_pattern($fmt);
84
- echo 'Second Formatted output with pattern is ' . datefmt_format($fmt, 0);
85
-
80
+ echo 'Pattern of the formatter is : ', datefmt_get_pattern($fmt), PHP_EOL;
81
+ echo 'First Formatted output with pattern is ', datefmt_format($fmt, 0), PHP_EOL;
82
+ datefmt_set_pattern($fmt, 'yyyyMMdd hh:mm:ss z');
83
+ echo 'Now pattern of the formatter is : ', datefmt_get_pattern($fmt), PHP_EOL;
84
+ echo 'Second Formatted output with pattern is ', datefmt_format($fmt, 0), PHP_EOL;
86
85
?>
87
86
]]>
88
87
</programlisting >
@@ -99,25 +98,24 @@ $fmt = new IntlDateFormatter(
99
98
IntlDateFormatter::GREGORIAN,
100
99
'MM/dd/yyyy'
101
100
);
102
- echo 'pattern of the formatter is : ' . $fmt->getPattern();
103
- echo 'First Formatted output is ' . $fmt->format(0);
104
- $fmt->setPattern('yyyymmdd hh:mm:ss z');
105
- echo 'Now pattern of the formatter is : ' . $fmt->getPattern();
106
- echo 'Second Formatted output is ' . $fmt->format(0);
107
-
101
+ echo 'Pattern of the formatter is : ', $fmt->getPattern(), PHP_EOL;
102
+ echo 'First Formatted output is ', $fmt->format(0), PHP_EOL;
103
+ $fmt->setPattern('yyyyMMdd hh:mm:ss z');
104
+ echo 'Now pattern of the formatter is : ', $fmt->getPattern(), PHP_EOL;
105
+ echo 'Second Formatted output is ', $fmt->format(0), PHP_EOL;
108
106
?>
109
107
]]>
110
108
</programlisting >
111
109
</example >
112
- &example.outputs;
113
- <screen >
114
- <![CDATA[
115
- pattern of the formatter is : MM/dd/yyyy
116
- First Formatted output with pattern is 12/31/1969
117
- Now pattern of the formatter is : yyyymmdd hh:mm:ss z
118
- Second Formatted output with pattern is 19690031 04:00:00 PST
110
+ &example.outputs;
111
+ <screen >
112
+ <![CDATA[
113
+ Pattern of the formatter is : MM/dd/yyyy
114
+ First Formatted output is 12/31/1969
115
+ Now pattern of the formatter is : yyyyMMdd hh:mm:ss z
116
+ Second Formatted output is 19691231 04:00:00 PST
119
117
]]>
120
- </screen >
118
+ </screen >
121
119
</refsect1 >
122
120
123
121
<refsect1 role =" seealso" >
0 commit comments