wiki/content/20201113115231-str_contains.md

20 lines
322 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-13
2024-05-06 20:40:05 +00:00
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>