mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
19 lines
322 B
Markdown
19 lines
322 B
Markdown
---
|
|
date: 2020-11-13
|
|
id: 01a0e800-3398-490b-bbb1-3abc80fb198c
|
|
title: str~contains~()
|
|
---
|
|
|
|
# Description
|
|
|
|
str~contains~()[^1] tells us if string contains other string.
|
|
|
|
# Syntax
|
|
|
|
``` php
|
|
if (str_contains('Lululu I've got some apples, 'apples')) { /* … */ }
|
|
```
|
|
|
|
# Footnotes
|
|
|
|
[^1]: <https://wiki.php.net/rfc/str_contains>
|