# PHP

> PHP file localization

URL: https://store.crowdin.com/php
Identifier: php
Category: File Formats
Type: System
Author: Crowdin

PHP is a natively supported file format, you can use it without an additional installation. Just upload it to your projects and start the localization.

## File Format Details

| Attribute | Value |
| --------- | ----- |
| File Extension | .php |
| [API Type](https://developer.crowdin.com/api/v2/#operation/api.projects.files.post) | php |
| Source can be edited in Crowdin | No |
| Generating translated files via [Bundles](https://support.crowdin.com/bundles/) | [Search Crowdin Store](https://store.crowdin.com/tags/string-exporter) |
| Supports pluralization | No |
| WYSIWYG Preview in the editor | No |
| Supported types of contextual information | Text comments, Screenshots, In-Context |
| Custom attributes | No |
| Existing translations import possibility | Key-value mapping |

## Sample File

```php
<?php

$array1 = [
    'BLOCK_CLASS' => 'CSS Class',
    'BLOCK_DESIGN' => 'Appearance',
];

$array12 = array(
    'BLOCK_CLASS' => 'CSS Class2222',
    'BLOCK_DESIGN' => 'Appearance2222',


$var1 = 'text';

$array2 = ["one", "two", "three", "four", "five", "six"];

$lang = array_merge(['foo', 'bar', 'baz', 'lorem'], $array2) ;

return [

  'welcome' => 'Welcome!',
  'login' => 'Login',
  'speakers' => 'Speakers',
  'congregations' => 'Congregations',
  'noCongregations' => 'There\'s no congregations.',
  'family' => [
          'father' => 'John',
          'mother' => 'Susan',
          'children' => [
               'son' => 'Jimmy',
          ],
  ],
  'plural' => 'one apple|a million apples'
];
```
