---
title: "Yongyao Yan (@yanyy) | Hashnode"
description: "I am a programmer and a technical writer. To find more programming tutorials, please visit my website: https://www.codebilby.com"
url: "https://hashnode.com/@yanyy"
---

@yanyy

# Yongyao Yan

@yanyy · Joined July 2021

I am a programmer and a technical writer. To find more programming tutorials, please visit my website: https://www.codebilby.com

[Website](https://www.codebilby.com/)

### [How to calculate keyword frequency and draw the bar chart in PHP](https://yanyy.hashnode.dev/how-to-calculate-keyword-frequency-and-draw-the-bar-chart-in-php?utm_source=hashnode&utm_medium=feed)

This post shows you how to calculate the keyword frequency from text and draw the bar chart by using the JpGraph library.

2 min read · [yanyy.hashnode.dev](https://yanyy.hashnode.dev/how-to-calculate-keyword-frequency-and-draw-the-bar-chart-in-php?utm_source=hashnode&utm_medium=feed)

[Jul 11, 2022](https://hashnode.com/posts/how-to-calculate-keyword-frequency-and-draw-the-bar-chart-in-php/62cbf869bffc4694f5bc6fb4)

### [How to count words in a string in PHP](https://yanyy.hashnode.dev/how-to-count-words-in-a-string-in-php?utm_source=hashnode&utm_medium=feed)

Show you how to count words and extract words from a string by using the PHP function str\_word\_count()

2 min read · [yanyy.hashnode.dev](https://yanyy.hashnode.dev/how-to-count-words-in-a-string-in-php?utm_source=hashnode&utm_medium=feed)

[Jun 29, 2022](https://hashnode.com/posts/how-to-count-words-in-a-string-in-php/62bcbb7bde0d0a065f4f6766)

### [Create an object from a string variable in PHP](https://yanyy.hashnode.dev/create-an-object-from-a-string-variable-in-php?utm_source=hashnode&utm_medium=feed)

In PHP, objects can be created from string variables. It provides a very convenient way for you to define rules in text and handle requests dynamically.

2 min read · [yanyy.hashnode.dev](https://yanyy.hashnode.dev/create-an-object-from-a-string-variable-in-php?utm_source=hashnode&utm_medium=feed)

[Jun 4, 2022](https://hashnode.com/posts/create-an-object-from-a-string-variable-in-php/629bbb03cc5e9335138666d9)

### [Reverse an array in PHP by using recursion](https://yanyy.hashnode.dev/reverse-an-array-in-php-by-using-recursion?utm_source=hashnode&utm_medium=feed)

Let's go back to a computer science textbook topic. Show you how to reverse an array in PHP without using any native array functions such as array\_xxx().

3 min read · [yanyy.hashnode.dev](https://yanyy.hashnode.dev/reverse-an-array-in-php-by-using-recursion?utm_source=hashnode&utm_medium=feed)

[May 15, 2022](https://hashnode.com/posts/reverse-an-array-in-php-by-using-recursion/628100afbc9305ec393650e0)

### [PHP functions strcspn() and strspn()](https://yanyy.hashnode.dev/php-functions-strcspn-and-strspn?utm_source=hashnode&utm_medium=feed)

Show you how to use the PHP functions strcspn() and strspn()

2 min read · [yanyy.hashnode.dev](https://yanyy.hashnode.dev/php-functions-strcspn-and-strspn?utm_source=hashnode&utm_medium=feed)

[May 4, 2022](https://hashnode.com/posts/php-functions-strcspn-and-strspn/6272ea3119a4772a6c29b111)
