Skip to content

Latest commit

 

History

History
157 lines (105 loc) · 2.4 KB

Dataset.md

File metadata and controls

157 lines (105 loc) · 2.4 KB

Dataset

Methods:

  • datasets
  • gender
  • platform
  • relationship
  • religion
  • status
  • bootstrap_icons
  • country
  • dial_code
  • mime
  • quota

datasets

Get the array of available datasets. The parameter is only small and large:

print_r(datasets('small')); // Output: [...]
print_r(datasets('large')); // Output: [...]

If the parameter is not from those two, it will return empty array:

print_r(datasets('big')); // Output: []

gender

Get the gender by code:

echo gender('L'); // Output: Laki-Laki

The default of parameter is null. If it's null, it will return the gender array:

print_r(gender()); // Output: [...]

platform

Get the platform by code:

echo platform(1); // Output: Facebook

The default of parameter is null. If it's null, it will return the platform array:

print_r(platform()); // Output: [...]

relationship

Get the relationship by code:

echo relationship(1); // Output: Lajang

The default of parameter is null. If it's null, it will return the relationship array:

print_r(relationship()); // Output: [...]

religion

Get the religion by code:

echo religion(1); // Output: Islam

The default of parameter is null. If it's null, it will return the religion array:

print_r(religion()); // Output: [...]

status

Get the status by code:

echo status(1); // Output: Aktif

The default of parameter is null. If it's null, it will return the status array:

print_r(status()); // Output: [...]

bootstrap_icons

Get the bootstrap icons array:

print_r(bootstrap_icons()); // Output: [...]

country

Get the country by code:

echo country('ID'); // Output: Indonesia

The default of parameter is null. If it's null, it will return the country array:

print_r(country()); // Output: [...]

dial_code

Get the dial code by code:

echo dial_code('ID'); // Output: +62

The default of parameter is null. If it's null, it will return the dial code array:

print_r(dial_code()); // Output: [...]

mime

Get the mime by type:

echo mime('image/png'); // Output: png

quote

Get the random quote:

echo quote('random'); // Output: Living like Larry

The default of parameter is null. If it's null, it will return the quote array:

print_r(quote()); // Output: [...]