Женя Лукашин
Женя Лукашин · renamed the question
Чем MySQL отличается от PostgreSQL? arrow_right_alt
How is MySQL different from PostgreSQL?
15 Nov at 8:44 am
Женя Лукашин
Женя Лукашин · renamed the question
Что такое принцыпы SOLID? arrow_right_alt
What are the principles of SOLID?
15 Nov at 8:43 am
The *first* is that you don’t need to append a #wildcard to every string in your robots.txt. It is implied that if you block `/route-foo/`, you want to block everything in this directory and do not need to include a wildcard (such as `/route-foo/*`). 

The *second* thing you need to know is that there are  actually two different types of wildcards supported by Google:

# `*` wildcards
Wildcard character

The `*` ``*`` wildcard character will simply match any sequence of characters. This is useful whenever there are clear URL patterns that you want to disallow such as filters and parameters.

# $ wildcards

The $ ``$`` wildcard character is used to denote the end of a URL. This is useful for matching specific file types, such as .pdf.

as ``.pdf``.

# Examples

Block search engines from accessing any URL that has a ? in it:

```
User-agent: *
Disallow: /*?
```

Block search engines from #crawling any URL a search results page (query?kw=)

```
User-agent: *
Disallow: /query?kw=*
```

Block search engines from crawling URLs in a common child directory

```
User-agent: *
Disallow: /*/child/
```

Block search engines from crawling URLs in a specific directory which 3 or more dashes

```
User-agent: *
Disallow: /directory/*-*-*-
```

#robotstxt #searchengines```
andreylikarin
andreylikarin · updated answer
24 Sen at 12:34 pm
barAn explode is the process of converting the characters of the string into smaller pieces. A string is the sequence of characters with some size limit.

The string which you want to explode can be a sentence which you can break into some parts which can be smaller or some combination of characters.

We can use PHP explode function to convert a string of characters into an array. ``explode()`` syntax:

```php
explode(String $delimiter, String $string, int $limit );
```

For example:

```
$string = "Foo Bar PHP";
$array = explode(' ', $string);
```

``$array`` is:

```
Array ( [0] => 'Foo' [1] => 'Bar' [2] => 'PHP' )
```