forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic_functions.stub.php
More file actions
executable file
·2079 lines (1474 loc) · 50.7 KB
/
basic_functions.stub.php
File metadata and controls
executable file
·2079 lines (1474 loc) · 50.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/** @generate-class-entries */
final class __PHP_Incomplete_Class
{
}
class AssertionError extends Error
{
}
/* main/main.c */
function set_time_limit(int $seconds): bool {}
/* main/SAPI.c */
function header_register_callback(callable $callback): bool {}
/* main/output.c */
/** @param callable $callback */
function ob_start($callback = null, int $chunk_size = 0, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool {}
function ob_flush(): bool {}
function ob_clean(): bool {}
function ob_end_flush(): bool {}
function ob_end_clean(): bool {}
/** @refcount 1 */
function ob_get_flush(): string|false {}
/** @refcount 1 */
function ob_get_clean(): string|false {}
function ob_get_contents(): string|false {}
function ob_get_level(): int {}
function ob_get_length(): int|false {}
/**
* @return array<int, string>
* @refcount 1
*/
function ob_list_handlers(): array {}
/**
* @return array<int|string, int|string|array>
* @refcount 1
*/
function ob_get_status(bool $full_status = false): array {}
function ob_implicit_flush(bool $enable = true): void {}
function output_reset_rewrite_vars(): bool {}
function output_add_rewrite_var(string $name, string $value): bool {}
/* main/streams/userspace.c */
function stream_wrapper_register(string $protocol, string $class, int $flags = 0): bool {}
/** @alias stream_wrapper_register */
function stream_register_wrapper(string $protocol, string $class, int $flags = 0): bool {}
function stream_wrapper_unregister(string $protocol): bool {}
function stream_wrapper_restore(string $protocol): bool {}
/* array.c */
function array_push(array &$array, mixed ...$values): int {}
/** @return true */
function krsort(array &$array, int $flags = SORT_REGULAR): bool {}
/** @return true */
function ksort(array &$array, int $flags = SORT_REGULAR): bool {}
/** @compile-time-eval */
function count(Countable|array $value, int $mode = COUNT_NORMAL): int {}
/** @alias count */
function sizeof(Countable|array $value, int $mode = COUNT_NORMAL): int {}
function natsort(array &$array): bool {}
function natcasesort(array &$array): bool {}
/** @return true */
function asort(array &$array, int $flags = SORT_REGULAR): bool {}
/** @return true */
function arsort(array &$array, int $flags = SORT_REGULAR): bool {}
/** @return true */
function sort(array &$array, int $flags = SORT_REGULAR): bool {}
function rsort(array &$array, int $flags = SORT_REGULAR): bool {}
/** @return true */
function usort(array &$array, callable $callback): bool {}
/** @return true */
function uasort(array &$array, callable $callback): bool {}
/** @return true */
function uksort(array &$array, callable $callback): bool {}
function end(array|object &$array): mixed {}
function prev(array|object &$array): mixed {}
function next(array|object &$array): mixed {}
function reset(array|object &$array): mixed {}
function current(array|object $array): mixed {}
/** @alias current */
function pos(array|object $array): mixed {}
function key(array|object $array): int|string|null {}
/** @compile-time-eval */
function min(mixed $value, mixed ...$values): mixed {}
/** @compile-time-eval */
function max(mixed $value, mixed ...$values): mixed {}
/** @return true */
function array_walk(array|object &$array, callable $callback, mixed $arg = UNKNOWN): bool {}
/** @return true */
function array_walk_recursive(array|object &$array, callable $callback, mixed $arg = UNKNOWN): bool {}
/**
* @compile-time-eval
*/
function in_array(mixed $needle, array $haystack, bool $strict = false): bool {}
/**
* @compile-time-eval
*/
function array_search(mixed $needle, array $haystack, bool $strict = false): int|string|false {}
/** @prefer-ref $array */
function extract(array &$array, int $flags = EXTR_OVERWRITE, string $prefix = ""): int {}
/**
* @param array|string $var_name
* @param array|string $var_names
* @return array<string, mixed|ref>
* @refcount 1
*/
function compact($var_name, ...$var_names): array {}
/** @return array<int, mixed> */
function array_fill(int $start_index, int $count, mixed $value): array {}
/** @refcount 1 */
function array_fill_keys(array $keys, mixed $value): array {}
/**
* @param string|int|float $start
* @param string|int|float $end
*/
function range($start, $end, int|float $step = 1): array {}
/** @return true */
function shuffle(array &$array): bool {}
function array_pop(array &$array): mixed {}
function array_shift(array &$array): mixed {}
function array_unshift(array &$array, mixed ...$values): int {}
function array_splice(array &$array, int $offset, ?int $length = null, mixed $replacement = []): array {}
function array_slice(array $array, int $offset, ?int $length = null, bool $preserve_keys = false): array {}
/**
* @compile-time-eval
*/
function array_merge(array ...$arrays): array {}
/**
* @compile-time-eval
*/
function array_merge_recursive(array ...$arrays): array {}
/**
* @compile-time-eval
* @refcount 1
*/
function array_replace(array $array, array ...$replacements): array {}
/**
* @compile-time-eval
* @refcount 1
*/
function array_replace_recursive(array $array, array ...$replacements): array {}
/**
* @return array<int, int|string>
* @compile-time-eval
*/
function array_keys(array $array, mixed $filter_value = UNKNOWN, bool $strict = false): array {}
/**
* @compile-time-eval
*/
function array_key_first(array $array): int|string|null {}
/**
* @compile-time-eval
*/
function array_key_last(array $array): int|string|null {}
/**
* @return array<int, mixed|ref>
* @compile-time-eval
*/
function array_values(array $array): array {}
/**
* @return array<int|string, int>
* @refcount 1
*/
function array_count_values(array $array): array {}
/** @refcount 1 */
function array_column(array $array, int|string|null $column_key, int|string|null $index_key = null): array {}
/** @refcount 1 */
function array_reverse(array $array, bool $preserve_keys = false): array {}
function array_pad(array $array, int $length, mixed $value): array {}
/**
* @return array<int|string, int|string>
* @refcount 1
* @compile-time-eval
*/
function array_flip(array $array): array {}
/**
* @refcount 1
* @compile-time-eval
*/
function array_change_key_case(array $array, int $case = CASE_LOWER): array {}
/**
* @compile-time-eval
*/
function array_unique(array $array, int $flags = SORT_STRING): array {}
/** @refcount 1 */
function array_intersect_key(array $array, array ...$arrays): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_intersect_ukey(array $array, ...$rest): array {}
/** @refcount 1 */
function array_intersect(array $array, array ...$arrays): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_uintersect(array $array, ...$rest): array {}
/** @refcount 1 */
function array_intersect_assoc(array $array, array ...$arrays): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_uintersect_assoc(array $array, ...$rest): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_intersect_uassoc(array $array, ...$rest): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_uintersect_uassoc(array $array, ...$rest): array {}
/**
* @refcount 1
* @compile-time-eval
*/
function array_diff_key(array $array, array ...$arrays): array {}
/**
* @param array|callable $rest
* @refcount 1
* @compile-time-eval
*/
function array_diff_ukey(array $array, ...$rest): array {}
/**
* @compile-time-eval
*/
function array_diff(array $array, array ...$arrays): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_udiff(array $array, ...$rest): array {}
/**
* @refcount 1
* @compile-time-eval
*/
function array_diff_assoc(array $array, array ...$arrays): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_diff_uassoc(array $array, ...$rest): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_udiff_assoc(array $array, ...$rest): array {}
/**
* @param array|callable $rest
* @refcount 1
*/
function array_udiff_uassoc(array $array, ...$rest): array {}
/**
* @param array $array
* @param array|int $rest
* @prefer-ref $array
* @prefer-ref $rest
*/
function array_multisort(&$array, &...$rest): bool {}
/** @return int|string|array<int, int|string> */
function array_rand(array $array, int $num = 1): int|string|array {}
function array_sum(array $array): int|float {}
function array_product(array $array): int|float {}
function array_reduce(array $array, callable $callback, mixed $initial = null): mixed {}
function array_filter(array $array, ?callable $callback = null, int $mode = 0): array {}
function array_map(?callable $callback, array $array, array ...$arrays): array {}
/** @param string|int $key */
function array_key_exists($key, array $array): bool {}
/**
* @param string|int $key
* @alias array_key_exists
*/
function key_exists($key, array $array): bool {}
function array_chunk(array $array, int $length, bool $preserve_keys = false): array {}
function array_combine(array $keys, array $values): array {}
function array_is_list(array $array): bool {}
/* base64.c */
/**
* @refcount 1
* @compile-time-eval
*/
function base64_encode(string $string): string {}
/**
* @compile-time-eval
* @refcount 1
*/
function base64_decode(string $string, bool $strict = false): string|false {}
/* basic_functions.c */
function constant(string $name): mixed {}
function ip2long(string $ip): int|false {}
/** @refcount 1 */
function long2ip(int $ip): string|false {}
/**
* @return string|array<string, string>|false
* @refcount 1
*/
function getenv(?string $name = null, bool $local_only = false): string|array|false {}
#ifdef HAVE_PUTENV
function putenv(string $assignment): bool {}
#endif
/**
* @param int $rest_index
* @return array<int|string, string|array|false>|false
* @refcount 1
*/
function getopt(string $short_options, array $long_options = [], &$rest_index = null): array|false {}
function flush(): void {}
function sleep(int $seconds): int {}
function usleep(int $microseconds): void {}
#ifdef HAVE_NANOSLEEP
/**
* @return array<string, int>|bool
* @refcount 1
*/
function time_nanosleep(int $seconds, int $nanoseconds): array|bool {}
function time_sleep_until(float $timestamp): bool {}
#endif
/** @refcount 1 */
function get_current_user(): string {}
/** @return string|array<int|string, string|array>|false */
function get_cfg_var(string $option): string|array|false {}
function error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): bool {}
/**
* @return array<string, int|string>|null
* @refcount 1
*/
function error_get_last(): ?array {}
function error_clear_last(): void {}
function call_user_func(callable $callback, mixed ...$args): mixed {}
function call_user_func_array(callable $callback, array $args): mixed {}
function forward_static_call(callable $callback, mixed ...$args): mixed {}
function forward_static_call_array(callable $callback, array $args): mixed {}
function register_shutdown_function(callable $callback, mixed ...$args): void {}
/** @refcount 1 */
function highlight_file(string $filename, bool $return = false): string|bool {}
/** @alias highlight_file */
function show_source(string $filename, bool $return = false): string|bool {}
/** @refcount 1 */
function php_strip_whitespace(string $filename): string {}
/** @refcount 1 */
function highlight_string(string $string, bool $return = false): string|bool {}
function ini_get(string $option): string|false {}
/**
* @return array<string, string|array|null>|false
* @refcount 1
*/
function ini_get_all(?string $extension = null, bool $details = true): array|false {}
function ini_set(string $option, string|int|float|bool|null $value): string|false {}
/** @alias ini_set */
function ini_alter(string $option, string|int|float|bool|null $value): string|false {}
function ini_restore(string $option): void {}
/** @refcount 1 */
function set_include_path(string $include_path): string|false {}
/** @refcount 1 */
function get_include_path(): string|false {}
/** @refcount 1 */
function print_r(mixed $value, bool $return = false): string|bool {}
function connection_aborted(): int {}
function connection_status(): int {}
function ignore_user_abort(?bool $enable = null): int {}
#ifdef HAVE_GETSERVBYNAME
function getservbyname(string $service, string $protocol): int|false {}
#endif
#ifdef HAVE_GETSERVBYPORT
/** @refcount 1 */
function getservbyport(int $port, string $protocol): string|false {}
#endif
#ifdef HAVE_GETPROTOBYNAME
function getprotobyname(string $protocol): int|false {}
#endif
#ifdef HAVE_GETPROTOBYNUMBER
/** @refcount 1 */
function getprotobynumber(int $protocol): string|false {}
#endif
function register_tick_function(callable $callback, mixed ...$args): bool {}
function unregister_tick_function(callable $callback): void {}
function is_uploaded_file(string $filename): bool {}
function move_uploaded_file(string $from, string $to): bool {}
/**
* @return array<int|string, bool|int|float|string|array|null>|false
* @refcount 1
*/
function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
/**
* @return array<int|string, bool|int|float|string|array|null>|false
* @refcount 1
*/
function parse_ini_string(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
#if ZEND_DEBUG
/**
* @return array<string, string|array>
* @refcount 1
*/
function config_get_hash(): array {}
#endif
#ifdef HAVE_GETLOADAVG
/**
* @return array<int, float>|false
* @refcount 1
*/
function sys_getloadavg(): array|false {}
#endif
/* browscap.c */
/**
* @return object|array<string, mixed>|false
* @refcount 1
*/
function get_browser(?string $user_agent = null, bool $return_array = false): object|array|false {}
/* crc32.c */
/** @compile-time-eval */
function crc32(string $string): int {}
/* crypt.c */
/** @refcount 1 */
function crypt(string $string, string $salt): string {}
/* datetime.c */
#ifdef HAVE_STRPTIME
/**
* @return array<string, int|string>|false
* @deprecated
* @refcount 1
*/
function strptime(string $timestamp, string $format): array|false {}
#endif
/* dns.c */
#ifdef HAVE_GETHOSTNAME
/** @refcount 1 */
function gethostname(): string|false {}
#endif
/** @refcount 1 */
function gethostbyaddr(string $ip): string|false {}
/** @refcount 1 */
function gethostbyname(string $hostname): string {}
/**
* @return array<int, string>|false
* @refcount 1
*/
function gethostbynamel(string $hostname): array|false {}
#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)
function dns_check_record(string $hostname, string $type = "MX"): bool {}
/** @alias dns_check_record */
function checkdnsrr(string $hostname, string $type = "MX"): bool {}
/**
* @param array $authoritative_name_servers
* @param array $additional_records
* @return array<int, array>|false
* @refcount 1
*/
function dns_get_record(string $hostname, int $type = DNS_ANY, &$authoritative_name_servers = null, &$additional_records = null, bool $raw = false): array|false {}
/**
* @param array $hosts
* @param array $weights
*/
function dns_get_mx(string $hostname, &$hosts, &$weights = null): bool {}
/**
* @param array $hosts
* @param array $weights
* @alias dns_get_mx
*/
function getmxrr(string $hostname, &$hosts, &$weights = null): bool {}
#endif
/* net.c */
#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__)
function net_get_interfaces(): array|false {}
#endif
/* ftok.c */
#ifdef HAVE_FTOK
function ftok(string $filename, string $project_id): int {}
#endif
/* hrtime.c */
function hrtime(bool $as_number = false): array|int|float|false {}
/* lcg.c */
function lcg_value(): float {}
/* md5.c */
/** @refcount 1 */
function md5(string $string, bool $binary = false): string {}
/** @refcount 1 */
function md5_file(string $filename, bool $binary = false): string|false {}
/* pageinfo.c */
function getmyuid(): int|false {}
function getmygid(): int|false {}
function getmypid(): int|false {}
function getmyinode(): int|false {}
function getlastmod(): int|false {}
/* sha1.c */
/** @refcount 1 */
function sha1(string $string, bool $binary = false): string {}
/** @refcount 1 */
function sha1_file(string $filename, bool $binary = false): string|false {}
/* syslog.c */
#ifdef HAVE_SYSLOG_H
function openlog(string $prefix, int $flags, int $facility): bool {}
/** @return true */
function closelog(): bool {}
/** @return true */
function syslog(int $priority, string $message): bool {} // TODO make return type void
#endif
#ifdef HAVE_INET_NTOP
/** @refcount 1 */
function inet_ntop(string $ip): string|false {}
#endif
#ifdef HAVE_INET_PTON
/** @refcount 1 */
function inet_pton(string $ip): string|false {}
#endif
/* metaphone.c */
/** @refcount 1 */
function metaphone(string $string, int $max_phonemes = 0): string {}
/* {{{ head.c */
function header(string $header, bool $replace = true, int $response_code = 0): void {}
function header_remove(?string $name = null): void {}
function setrawcookie(string $name, string $value = "", array|int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false): bool {}
function setcookie(string $name, string $value = "", array|int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false): bool {}
function http_response_code(int $response_code = 0): int|bool {}
/**
* @param string $filename
* @param int $line
*/
function headers_sent(&$filename = null, &$line = null): bool {}
/**
* @return array<int, string>
* @refcount 1
*/
function headers_list(): array {}
/* {{{ html.c */
/** @refcount 1 */
function htmlspecialchars(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null, bool $double_encode = true): string {}
function htmlspecialchars_decode(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401): string {}
function html_entity_decode(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null): string {}
/** @refcount 1 */
function htmlentities(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null, bool $double_encode = true): string {}
/**
* @return array<string, string>
* @refcount 1
*/
function get_html_translation_table(int $table = HTML_SPECIALCHARS, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, string $encoding = "UTF-8"): array {}
/* }}} */
/* assert.c */
function assert(mixed $assertion, Throwable|string|null $description = null): bool {}
function assert_options(int $option, mixed $value = UNKNOWN): mixed {}
/* string.c */
/**
* @compile-time-eval
* @refcount 1
*/
function bin2hex(string $string): string {}
/**
* @compile-time-eval
* @refcount 1
*/
function hex2bin(string $string): string|false {}
function strspn(string $string, string $characters, int $offset = 0, ?int $length = null): int {}
function strcspn(string $string, string $characters, int $offset = 0, ?int $length = null): int {}
#ifdef HAVE_NL_LANGINFO
/** @refcount 1 */
function nl_langinfo(int $item): string|false {}
#endif
function strcoll(string $string1, string $string2): int {}
/** @compile-time-eval */
function trim(string $string, string $characters = " \n\r\t\v\0"): string {}
/** @compile-time-eval */
function rtrim(string $string, string $characters = " \n\r\t\v\0"): string {}
/** @alias rtrim */
function chop(string $string, string $characters = " \n\r\t\v\0"): string {}
/** @compile-time-eval */
function ltrim(string $string, string $characters = " \n\r\t\v\0"): string {}
/** @refcount 1 */
function wordwrap(string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false): string {}
/**
* @return array<int, string>
* @refcount 1
* @compile-time-eval
*/
function explode(string $separator, string $string, int $limit = PHP_INT_MAX): array {}
/**
* @compile-time-eval
*/
function implode(string|array $separator, ?array $array = null): string {}
/** @alias implode */
function join(string|array $separator, ?array $array = null): string {}
/** @refcount 1 */
function strtok(string $string, ?string $token = null): string|false {}
/** @compile-time-eval */
function strtoupper(string $string): string {}
/** @compile-time-eval */
function strtolower(string $string): string {}
/** @refcount 1 */
function basename(string $path, string $suffix = ""): string {}
/** @refcount 1 */
function dirname(string $path, int $levels = 1): string {}
/**
* @return array<string, string>|string
* @refcount 1
*/
function pathinfo(string $path, int $flags = PATHINFO_ALL): array|string {}
/** @refcount 1 */
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}
/** @refcount 1 */
function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {}
/** @alias strstr */
function strchr(string $haystack, string $needle, bool $before_needle = false): string|false {}
/** @compile-time-eval */
function strpos(string $haystack, string $needle, int $offset = 0): int|false {}
/** @compile-time-eval */
function stripos(string $haystack, string $needle, int $offset = 0): int|false {}
/** @compile-time-eval */
function strrpos(string $haystack, string $needle, int $offset = 0): int|false {}
/** @compile-time-eval */
function strripos(string $haystack, string $needle, int $offset = 0): int|false {}
/** @refcount 1 */
function strrchr(string $haystack, string $needle): string|false {}
/** @compile-time-eval */
function str_contains(string $haystack, string $needle): bool {}
/** @compile-time-eval */
function str_starts_with(string $haystack, string $needle): bool {}
/** @compile-time-eval */
function str_ends_with(string $haystack, string $needle): bool {}
/** @refcount 1 */
function chunk_split(string $string, int $length = 76, string $separator = "\r\n"): string {}
/** @compile-time-eval */
function substr(string $string, int $offset, ?int $length = null): string {}
/** @return string|array<int|string, string> */
function substr_replace(array|string $string, array|string $replace, array|int $offset, array|int|null $length = null): string|array {}
/** @refcount 1 */
function quotemeta(string $string): string {}
/** @compile-time-eval */
function ord(string $character): int {}
/**
* @compile-time-eval
* @refcount 1
*/
function chr(int $codepoint): string {}
/** @compile-time-eval */
function ucfirst(string $string): string {}
/** @compile-time-eval */
function lcfirst(string $string): string {}
/**
* @compile-time-eval
* @refcount 1
*/
function ucwords(string $string, string $separators = " \t\r\n\f\v"): string {}
function strtr(string $string, string|array $from, ?string $to = null): string {}
/**
* @compile-time-eval
* @refcount 1
*/
function strrev(string $string): string {}
/** @param float $percent */
function similar_text(string $string1, string $string2, &$percent = null): int {}
function addcslashes(string $string, string $characters): string {}
function addslashes(string $string): string {}
/** @refcount 1 */
function stripcslashes(string $string): string {}
/** @refcount 1 */
function stripslashes(string $string): string {}
/**
* @param int $count
* @return string|array<int|string, string>
* @compile-time-eval
*/
function str_replace(array|string $search, array|string $replace, string|array $subject, &$count = null): string|array {}
/**
* @param int $count
* @return string|array<int|string, string>
* @compile-time-eval
*/
function str_ireplace(array|string $search, array|string $replace, string|array $subject, &$count = null): string|array {}
/** @refcount 1 */
function hebrev(string $string, int $max_chars_per_line = 0): string {}
function nl2br(string $string, bool $use_xhtml = true): string {}
/** @refcount 1 */
function strip_tags(string $string, array|string|null $allowed_tags = null): string {}
/**
* @param array|string $locales
* @param string $rest
*/
function setlocale(int $category, $locales, ...$rest): string|false {}
/** @param array $result */
function parse_str(string $string, &$result): void {}
/**
* @return array<int, string|null>
* @refcount 1
*/
function str_getcsv(string $string, string $separator = ",", string $enclosure = "\"", string $escape = "\\"): array {}
/** @refcount 1 */
function str_repeat(string $string, int $times): string {}
/**
* @return array<int, int>|string
* @refcount 1
*/
function count_chars(string $string, int $mode = 0): array|string {}
function strnatcmp(string $string1, string $string2): int {}
/**
* @return array<string, int|string|array>
* @refcount 1
*/
function localeconv(): array {}
function strnatcasecmp(string $string1, string $string2): int {}
function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int {}
function str_pad(string $string, int $length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT): string {}
/**
* @return array<int, mixed>|int|null
* @refcount 1
*/
function sscanf(string $string, string $format, mixed &...$vars): array|int|null {}
/** @refcount 1 */
function str_rot13(string $string): string {}
/** @refcount 1 */
function str_shuffle(string $string): string {}
/**